升级 WordPress 3.4 之后我的所有主题都从仪表盘的主题管理页面消失了,只显示正在使用的主题,且只显示这一个。今天终于找到了原因所在,顺利解决问题。原来是优化服务器的时候将 PHP 的 scandir
函数禁用掉了,而新版 WordPress 引入了 WP_Theme 类来处理主题问题,该类使用 scandir
函数来检测 /wp-content/themes/
中的所有主题。
月度归档:2012 年 7月
Solve Problem of No Themes Show Up in Themes Page of WordPress
After upgrading to WordPress 3.4, there are no themes show up in section Available Themes on page of Manage Themes in my WordPress Dashboard. And I get no response from WordPress support forum when asking for help. Finally, I figure out how this happens and success to fix it today.