李锋镝的博客

  • 首页
  • 时间轴
  • 说说
  • 系列文章
  • AI工具集
  • 论坛
  • 左邻右舍
    • 左邻右舍
    • 朋友圈
    • 游客中心
  • 留言
    • 留言
    • 走心评论
  • 关于
    • 关于本站
    • Now
    • 每日心情
    • 网站地图
    • 网站统计
    • 赞助
  • 星球穿梭
  • 🚇开往
白雪成红
惟坚韧者始能遂其志
  1. 首页
  2. 原创
  3. WordPress
  4. 正文

本来想把主题上传到WordPress官方主题商店的,结果懵逼了……

2026年8月27日 约 1,437 字5 分钟 440 1 8

想着把主题上传到官方的主题商店,结果看到官方一页拉不到底的“要求”,直接懵了,这也太多了吧?官方文档地址:https://make.wordpress.org/themes/handbook/review/required/

想了想,索性直接让AI给分析一下,一分析更懵逼了,我这主题也太不符合官方的要求了……

贴一下AI给的部分审核文档让大家看下:


审核依据:https://make.wordpress.org/themes/handbook/review/required/(Required 页,抓取于 2026-08-27)
被审代码:main @ e66580c(v1.1.19)

官方前置规则:"Themes that have 3 or more distinct issues may be closed as not-approved."(页首)
本主题存在数十项 distinct issue,且多项属结构性问题,现状必然被拒。


0. 总览:条款 → 违规项数量

条款标题本主题违规
§1Licensing & copyright3 项
§2Privacy3 项
§3Accessibility2 项
§4Code4 类(含 2 处可利用 XSS)
§5Functionality and Features5 类(含 CPT / 44 个短代码)
§6Plugins10+ 类插件领域功能
§7Naming1 项风险
§8Language & internationalization3 项
§9Files8 项(含远程资源、压缩资源无源码、截图比例)
§10Classic themes6 项必需项缺失
§12Theme settings pages and onboarding4 项
§13Selling, credits, links待核(页脚版权链接)

§1 Licensing & copyright

原文要点:

All code, data, and images — anything in the theme zip file — must comply with the GPL or a GPL-Compatible license. Included third-party libraries, code, images, or otherwise, must be compatible.

  • Include license, copyright information, and source for all resources included…
  • Provide a list of all resources in one file.

违规:

#问题位置
1.1内置 CodeStar Framework 是 free + Pro 混合体,按 CLAUDE.md 记载含 8 个 Pro class(customize/metabox/nav-menu/profile/shortcode/taxonomy/widget/comment-options.class.php),靠 CSF_Setup::init(__FILE__, true) 解锁。目录内无 LICENSE 文件、无来源声明。分发商业版文件既无法证明 GPL 兼容,也存在授权风险。inc/codestar-framework/
1.2内置第三方资源无授权/来源清单("list of all resources in one file" 完全缺失,因为连 readme.txt 都没有):Bootstrap、lightGallery、layer、Font Awesome、animate.css、DPlayer、html2canvas、qrcode、CodeMirror 5.62.2、highlight-php、ip2region、plugin-update-checker、Guzzle。assets/、inc/
1.3inc/volcengine-imagex/、inc/ip2region/ 无 LICENSE 文件。(inc/highlight-php/LICENSE.md、inc/update-checker/license.txt已有。)同左

§2 Privacy

原文:

Any tracking and collection of user data must be disabled by default and opt-in only. Documentation on how any user data is collected and used needs to be in the theme readme.txt…

违规:

#问题位置
2.1评论者 IP 归属地解析(采集并展示访客 IP 地理信息),默认行为未在 readme 中披露inc/theme-comment-geo.php、inc/ip2region/
2.2阅读量统计:每次 wp_head 对访客请求写 postmeta,无速率限制、无 opt-ininc/theme-article.php:73-86
2.3友链页记录访客信息、seo_statistical 选项原样注入任意统计代码inc/theme-friend-links.php、header.php:28-30

§3 Accessibility

原文:

Skip links — Themes must include a mechanism that enables users to navigate directly to content or navigation on entering any given page… A minimally conforming skip link must: be the first focusable element…, be visible when keyboard focus moves to the link, move focus to the main content area…
Keyboard navigation — Theme authors must provide visual keyboard focus highlighting in navigation menus and for form fields, submit buttons, and text links.

违规:

#问题位置
3.1无 skip link,也无 .screen-reader-text 工具类(全仓库 grep 无命中)。本主题有顶部菜单 + banner,属于"有内容需要跳过"的情形,故此条强制适用。header.php
3.2user-scalable=no 禁用双指缩放;键盘焦点样式未系统化(需逐项核 :focus-visible)header.php:18

§5 Functionality and Features

原文(这是本主题最致命的一条):

Do not include:

  • Custom post types
  • Custom blocks
  • Custom roles
  • Custom user contact methods
  • Custom mime types
  • Shortcodes
  • Functionality that is not related to design and presentation

Admin notices: Use the admin_notices API for all notifications generated by the theme. Notices must be dismissible.
Do not: … Remove non-presentational hooks

违规:

#问题位置
5.1注册自定义文章类型 ×2:register_post_type(KRATOS_NOW_CPT)、register_post_type(KRATOS_SHUOSHUO_CPT)(含 flush_rewrite_rules)inc/theme-now.php:27、inc/theme-shuoshuo.php:62,93
5.2注册自定义分类法:register_taxonomy('kratos_series')inc/theme-series.php:168,206,235
5.3注册 44 个短代码:inc/theme-shortcode.php 24 个(h2title/success/info/warning/danger/music/bdbtn/kbd/mark/striped/*box/vqq/youtube/bilibili/reply/accordion/dplayer/countdown)+ 20 个文件各 1–2 个(custom_categories/custom_date_archive/custom_tags/yearly_review/on_this_day/friend_feed/mood_log/mood_log_input/kratos_series_list/timeline/post_heatmap/site_dashboard/stumble/friend_links/top_commenters/home_featured/archives_stats/now/comment_geo/heart_comments/shuoshuo_feed)见上
5.4自定义区块(Gutenberg blocks)inc/theme-gutenberg-blocks.php、assets/js/blocks/

CPT/taxonomy 的连带模板(single-shuoshuo.php / page-shuoshuo.php / page-now.php / taxonomy-kratos_series.php)同样要跟着移出。


§6 Plugins

原文:

Do not: … Include plugin functionality.
If you are not sure if a feature is plugin functionality, contact the team and ask first.
(明确列举)Analytics or tracking support / SEO options / Contact forms / Non-design related meta boxes / Resource caching / Social media 'like','follow','share buttons' / Session tampering

违规(每一项都独立构成 distinct issue):

#功能对应官方列举项位置
6.1SEO meta / OG / Twitter Card / keywords / description / robotsSEO optionsinc/theme-seo.php:33-61、inc/theme-setting.php:36-90
6.2X-Robots-Tag: noindex, nofollow 输出SEO optionsinc/theme-stumble.php:40
6.3seo_statistical 任意统计代码注入Analytics or tracking supportheader.php:28-30
6.4阅读量计数器Analytics / 非表现层inc/theme-article.php:73-86
6.5站点数据看板、评论者地域分布、文章热度图Analytics / 非表现层theme-site-dashboard.php、theme-comment-geo.php、theme-post-heatmap.php
6.6数据库瘦身 + transient 缓存层(含裸 DELETE FROM wp_posts/wp_comments)Resource cachinginc/theme-performance.php:586-661,739,1052
6.7友链申请表单(含邮件通知)Contact formsinc/theme-friend-links.php:1463-1517
6.8SMTP 覆写 + wp_mail 发信非表现层inc/theme-smtp.php:14,24,77,286
6.9SEO meta boxNon-design related meta boxesinc/theme-article.php:598-650
6.10图床/CDN 上传接管(wp_handle_upload / upload_dir / 附件 metadata)非表现层theme-dogecloud.php:71,102,153、theme-volcengine.php + inc/volcengine-imagex/
6.11评论验证码 / 蜜罐 / 点赞反应 / 排名徽章非表现层theme-comment-captcha.php、theme-comment-honeypot.php、theme-comment-reactions.php、theme-comment-rank.php
6.12自建数据表 ×2(dbDelta+ CREATE TABLE)非表现层(另违 §12 单一选项规则)theme-friend-feed.php:38,50,71、theme-mood-log.php:30,43,50
6.13RSS 聚合抓取、心情日志、命令面板、内链悬浮预览、自动内链非表现层theme-friend-feed.php、theme-mood-log.php、theme-command-palette.php、theme-link-preview.php、theme-auto-link.php

另:§6 "Do not include zip files or plugins in the theme folder" → demo/kratos-plus-1.1.19-test-e66580c.zip 直接命中(同时命中 §9 的 "Zip files")。


§7 Naming, spelling, and trademarks

The themes team can decline themes based on the name … if they decide that the name is inappropriate or too similar to an existing theme or brand.

风险项:Kratos-plus 派生自上游 Kratos 主题。若目录中已存在同族名称,团队可能要求改名。此外 §1 要求 "All code and design must be your own or legally yours",二次开发需在 readme 中清楚标注上游作者与 GPL 继承关系(当前只在 style.css Description 里提到,未进 readme——因为没有 readme)。


其实后面还有不少,但是看到这里我已经累了……需要改动的地方太多了,真要按照官方的要求改,我得把主题里面不少功能抽出来作为插件来使用,搞成插件的话,我之前辛辛苦苦整合到主题里面是为了什么?

蒜鸟蒜鸟~我还是老老实实的自托管吧。

参考链接

1
  1. 1https://make.wordpress.org/themes/handbook/review/required/make.wordpress.org
本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可
分享到

本来想把主题上传到WordPress官方主题商店的,结果懵逼了……

也可使用浏览器菜单中的「分享」功能

微信扫一扫分享

标签: Theme WordPress
最后更新:2026年8月27日

岁月同一天 10 月 12 日

回望过去的今天,你在写什么

  • 5 年前 2021年10月12日
    新买的笔记本发货啦……

    国庆节期间狠狠心咬咬牙,贡献了点儿GDP,买了个MBP,我都快要忘记这事儿的时候,突然收到短信提醒说是发货了……哎妈呀,…

  • 7 年前 2019年10月12日
    Spring Boot发展史(Spring Boot介绍)

    Spring 历史 说起 Spring Boot 我们不得不先了解一下 Spring 这个企业,不仅因为 Spring …

  • 7 年前 2019年10月12日
    【漫画】戏说外行对程序员的误会有多深

    程序员如今已经发展成社会的主流职业,以至于街头的王大妈李大爷都能说出一二来,据说他们认为的程序员是这样子的: 1.程序员…

  • 7 年前 2019年10月12日
    JAVA之从线程安全说到锁

    什么是线程安全? 线程安全是指保证多线程环境下共享的、可修改的状态的正确性。 线程安全需要保证几个基本特性 原子性:相关…

相关文章
  • Kratos+主题新功能介绍2026年7月14日
  • WordPress下一代默认主题Ipsum预览2026年9月18日
  • 写了个日期进度条的小插件2025年5月6日
  • Kratos+ v1.1.14版本更新说明2026年8月7日
  • WordPress评论添加UserAgent以及地理位置信息2025年12月1日

李锋镝

既然选择了远方,便只顾风雨兼程。

打赏 点赞
< 上一篇
下一篇 >
1234567891112131415161718192021222324252627282930313233343536373839404142434446474849505152535455575859606162636465666769727476777879808182858687909293949596979899
取消回复
…

文章评论

  • 皮皮社长Lv 2友

    哈~看到一半我实在看不下去了,这要求鬼来了都怕~ :8:

    WindowsWindowsChrome 122.0.6261.95Chrome 122.0.6261.95中国中国-湖南-永州
    2026年8月28日
    00 回复
    • 李锋镝博主

      @皮皮社长 毁灭吧~哈哈哈,真佩服那些上传主题的,真爱粉啊

      macOSmacOSChrome 151.0.0.0Chrome 151.0.0.0中国中国-北京
      2026年8月28日
      00 回复
  • HaryLv 2友

    太复杂了吧,可以扔给AI,规则也给他,改一改

    AndroidAndroidChrome 151.0.0.0Chrome 151.0.0.0中国中国-安徽-合肥
    2026年8月27日
    00 回复
    • 李锋镝博主

      @Hary token没了主要是~太费钱了

      WindowsWindowsChrome 151.0.0.0Chrome 151.0.0.0中国中国-北京
      2026年8月27日
      00 回复
  • 老张博客Lv 3友

    可以让AI直接干这件事。

    WindowsWindowsEdge 151.0.0.0Edge 151.0.0.0美国美国-California-Los Angeles
    2026年8月27日
    00 回复
    • 李锋镝博主

      @老张博客 太费劲儿了主要是,而且感觉这个会很费token

      WindowsWindowsChrome 151.0.0.0Chrome 151.0.0.0中国中国-北京
      2026年8月27日
      00 回复
  • 瓦匠Lv 2友

    要求这么高啊

    WindowsWindowsChrome 151.0.0.0Chrome 151.0.0.0中国中国-湖北-武汉
    2026年8月27日
    00 回复
    • 李锋镝博主

      @瓦匠 是的,WP要求还是挺高的,太难了

      WindowsWindowsChrome 151.0.0.0Chrome 151.0.0.0中国中国-北京
      2026年8月27日
      00 回复
  • 世界上只有一种真正的英雄主义,就是认清生活的真相后依然热爱它。

    听点儿音乐吧 朋友~
    文章目录
    最新 热点 随机
    最新 热点 随机
    讨论下XXL-JOB GLUE模式的安全问题 心气没了,干什么都不得劲 Kratos-plus v1.1.26版本更新说明 我觉得是时候公布我的导航网站了 代码是 AI 写的,生产事故谁背锅? 给主题增加了游客中心功能
    给主题增加了游客中心功能我觉得是时候公布我的导航网站了心气没了,干什么都不得劲游本昌去世关于主题加载速度优化的一点儿小演进给主题增加了Now、每日心情、年度回顾、岁月同一天、随机漫步等功能
    GitLab创建新项目,初次提交命令和流程 Java进阶实战:10个高效技巧+环境管理指南,让代码简洁又优雅 WordPress实现用户评论等级排行榜插件 从SQL规范性检查、表结构索引检查着手分析如何优化SQL codebase-memory-mcp 极简完整使用指南 CompletableFuture使用详解
    最近评论
    李锋镝 发布于 4 小时前(10月12日) okk~
    李锋镝 发布于 4 小时前(10月12日) 确实,等过几年看看吧
    李锋镝 发布于 4 小时前(10月12日) 没有闲置的,哈哈哈
    倦意 发布于 17 小时前(10月11日) 你好,我是倦意,在做一个小项目:博客汇(https://bkh.jyblog.com),一个通过 R...
    彬红茶 发布于 1 天前(10月11日) 硬盘现在都好贵呀,估计还得过渡几年,AI算力不够了
    标签聚合
    JVM JAVA Redis Spring SpringBoot IDEA 数据库 AI编程 K8s ElasticSearch SQL 架构 AI Claude WordPress 多线程 分布式 日常 Theme MySQL
    友情链接
    • 瓦匠个人小站
    • Mr.Sun的博客
    • 韩情脉脉
    • 懋和道人
    • Serendipity
    • sssr7844的博客
    • lijie blog
    • 韩小韩博客
    • 皮皮社
    • 搬砖日记
    • 老张博客
    • 知向前端
    • Honesty
    • 林羽凡
    • 哥斯拉
    • 志文工作室
    • 九仞之行
    • 彬红茶日记

    COPYRIGHT © 2016-2026 lifengdi.com. ALL RIGHTS RESERVED.

    lifengdi.com 十年之约虫洞

    Domain age badge for lifengdi.com

    Theme Kratos-plus By Dylan Li

    津ICP备2024022503号-3

    京公网安备11011502039375号