李锋镝的博客

  • 首页
  • 时间轴
  • 说说
  • 每日心情
  • Now
  • 系列文章
  • 论坛
  • 左邻右舍
    • 左邻右舍
    • 博友圈
  • 留言
    • 留言
    • 走心评论
  • 关于
    • 关于我
    • 网站地图
    • 网站统计
    • 另一个网站
    • 我的导航站
    • 赞助
  • 🚇开往
Destiny
自是人生长恨水长东
  1. 首页
  2. 原创
  3. WordPress
  4. 正文

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

2026年8月27日 约 1,437 字5 分钟 75 0 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)。


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

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

除非注明,否则均为李锋镝的博客原创文章,转载必须以链接形式标明本文链接

本文链接:https://www.lifengdi.com/article/wordpress/4935

本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可
标签: Theme WordPress
最后更新:2026年8月27日
相关文章
  • 写了个日期进度条的小插件2025年5月6日
  • 给主题增加了Now、每日心情、年度回顾、岁月同一天、随机漫步等功能2026年7月21日
  • WordPress评论添加UserAgent以及地理位置信息2025年12月1日
  • Dylan Custom Plugin 1.0.2版本更新说明2025年4月16日
  • WordPress的自动更新好烦啊2021年11月11日

李锋镝

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

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

文章评论

  • 皮皮社长Lv 2友

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

    WindowsChrome 122.0.6261.95 中国-湖南-永州
    2026年8月28日
    00 回复
    • 李锋镝管理

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

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

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

    AndroidChrome 151.0.0.0 中国-安徽-合肥
    2026年8月27日
    00 回复
    • 李锋镝管理

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

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

    可以让AI直接干这件事。

    WindowsEdge 151.0.0.0 美国-California-Los Angeles
    2026年8月27日
    00 回复
    • 李锋镝管理

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

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

    要求这么高啊

    WindowsChrome 151.0.0.0 中国-湖北-武汉
    2026年8月27日
    00 回复
    • 李锋镝管理

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

      WindowsChrome 151.0.0.0 中国-北京
      2026年8月27日
      00 回复
  • 夜阑卧听风吹雨,铁马冰河入梦来。

    听点儿音乐吧 朋友~
    文章目录
    最新 热点 随机
    最新 热点 随机
    记录一下PHP升级8.5遇到的坑 本来想把主题上传到WordPress官方主题商店的,结果懵逼了…… 英伟达 H100 是啥,到底好在哪? Kafka Log Compaction(日志压缩)详解 WordPress缓存插件WP Fastest Cache、WP Rocket 、FlyingPress对比 每日早报 · 2026年8月20日 · 早上好
    给主题增加了Now、每日心情、年度回顾、岁月同一天、随机漫步等功能Kratos+ v1.1.16版本更新说明AI时代,个人技术博客的出路在哪里?增加了两套复古皮肤-牛皮纸、千禧网页写了一个订阅每日新闻的WP插件WordPress缓存插件WP Fastest Cache、WP Rocket 、FlyingPress对比
    深度解析 Disruptor:无锁队列的高性能实现与实践 从技术本质到生态关联,一文吃透 AIGC、RAG、Agent、Function Call、MCP jasypt-spring-boot 使用说明 使用内存数据库进行MyBatis单元测试 红黑树简介 每日早报 · 2026年8月14日
    最近评论
    李锋镝 发布于 3 小时前(08月28日) 毁灭吧~哈哈哈,真佩服那些上传主题的,真爱粉啊
    皮皮社长 发布于 12 小时前(08月28日) 哈~看到一半我实在看不下去了,这要求鬼来了都怕~ :8:
    李锋镝 发布于 15 小时前(08月27日) token没了主要是~太费钱了
    李锋镝 发布于 15 小时前(08月27日) 哈哈哈,什么是开心版?
    李锋镝 发布于 15 小时前(08月27日) 太费劲儿了主要是,而且感觉这个会很费token
    标签聚合
    架构 数据库 K8s 日常 ElasticSearch AI编程 IDEA 多线程 分布式 WordPress SpringBoot MySQL Redis JVM SQL AI JAVA MQ Spring Claude
    友情链接
    • 哥斯拉
    • 彬红茶日记
    • sssr7844的博客
    • 懋和道人
    • Serendipity
    • 韩情脉脉
    • 志文工作室
    • 知向前端
    • 瓦匠个人小站
    • 九仞之行
    • 林羽凡
    • Mr.Sun的博客
    • 老张博客
    • 若梦博客
    • Honesty
    • 蜗牛工作室
    • 搬砖日记
    • 皮皮社
    • 韩小韩博客
    • 临窗旋墨

    COPYRIGHT © 2026 lifengdi.com. ALL RIGHTS RESERVED.

    正在博友圈履约中

    域名年龄

    Theme Kratos-plus By Dylan Li

    津ICP备2024022503号-3

    京公网安备11011502039375号