李锋镝的博客

  • 首页
  • 时间轴
  • 说说
  • 每日心情
  • Now
  • 系列文章
  • 论坛
  • 左邻右舍
    • 左邻右舍
    • 博友圈
  • 留言
    • 留言
    • 走心评论
  • 关于
    • 关于本站
    • 网站地图
    • 网站统计
    • 另一个网站
    • 我的导航站
    • 赞助
  • 🚇开往
!Destiny
惟坚韧者始能遂其志
  1. 首页
  2. 原创
  3. WordPress
  4. 正文

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

2026年8月27日 约 1,437 字5 分钟 326 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
除非注明,否则均为李锋镝的博客原创文章,转载必须以链接形式标明本文链接

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

本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可
分享到

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

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

微信扫一扫分享

标签: Theme WordPress
最后更新:2026年8月27日
相关文章
  • WordPress网站换了个字体,差点儿把样式换崩了2025年12月14日
  • Kratos+ v1.1.14版本更新说明2026年8月7日
  • Dylan Custom Plugin 1.0.2版本更新说明2025年4月16日
  • Kratos+ v1.1.18版本更新说明2026年8月19日
  • wordpress增加说说功能2025年4月2日

李锋镝

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

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

文章评论

  • blank
    皮皮社长Lv 2友

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

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

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

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

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

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

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

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

    可以让AI直接干这件事。

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

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

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

    要求这么高啊

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

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

      WindowsWindowsChrome 151.0.0.0Chrome 151.0.0.0中国中国-北京
      2026年8月27日
      00 回复
  • 惟坚韧者始能遂其志。

    听点儿音乐吧 朋友~
    文章目录
    最新 热点 随机
    最新 热点 随机
    支撑全网40%网站的WordPress正在重新拥抱PHP生态 Kratos-plus v1.1.24版本更新说明 关于主题加载速度优化的一点儿小演进 市场主流AI编程大模型横向深度分析(2026-09-11) 一款节省token的利器:RTK(Rust Token Killer) RAG太难学?LLM Wiki了解一下
    给主题增加了Now、每日心情、年度回顾、岁月同一天、随机漫步等功能WordPress缓存插件WP Fastest Cache、WP Rocket 、FlyingPress对比关于使用AI的一些思考Kratos+ v1.1.16版本更新说明AI时代,个人技术博客的出路在哪里?推荐一个SVG 矢量小图标免费下载网站
    Springboot接入DeepSeek API 详解 ZooKeeper 数据持久化 重构 Controller 终极指南:从臃肿到优雅的 7 大黄金法则 + 实战技巧 UUID太长怎么办?快来试试NanoId 写了个日期进度条的小插件 JMX监控权限认证配置
    最近评论
    blank
    lijie blog 发布于 9 小时前(09月14日) 友链申请 名称:lijie blog 链接:https://lijie.cool 描述:懒于当...
    blank
    Hary 发布于 11 小时前(09月14日) 等PHP9推倒重来,出个船新版本
    blank
    李锋镝 发布于 23 小时前(09月14日) 不愧是皮总,这措辞~ :30:
    blank
    皮皮社长 发布于 23 小时前(09月14日) :20: 我勒了个去,中国汉字波大精深。 :42:
    blank
    李锋镝 发布于 23 小时前(09月14日) 我这里面也带了一堆小表情包,看看不行也优化一波
    标签聚合
    Redis WordPress AI SpringBoot Claude 架构 JAVA 分布式 AI编程 K8s ElasticSearch Spring 多线程 日常 IDEA MySQL MQ JVM SQL 数据库
    友情链接
    • 若梦博客
    • 九仞之行
    • sssr7844的博客
    • Honesty
    • 彬红茶日记
    • 蜗牛工作室
    • 老张博客
    • 搬砖日记
    • 瓦匠个人小站
    • 志文工作室
    • 韩情脉脉
    • 知向前端
    • Serendipity
    • 临窗旋墨
    • 韩小韩博客
    • 皮皮社
    • 哥斯拉
    • Mr.Sun的博客
    • 懋和道人
    • 林羽凡

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

    Domain age badge for lifengdi.com

    Theme Kratos-plus By Dylan Li

    津ICP备2024022503号-3

    京公网安备11011502039375号