解决方法是找到报错的位置然后看哪个变量是没有初始化而直接使用的,将这个变量先实例化一个空类。如:
复制代码 代码如下:
$ct = new stdclass();
修改文件相应代码,如:
复制代码 代码如下:
if ( ! isset( $themes[$current_theme] ) ) {
delete_option( 'current_theme' );
$current_theme = get_current_theme();
}
$ct = new stdclass(); <!--添加这行-->
$ct->name = $current_theme;
delete_option( 'current_theme' );
$current_theme = get_current_theme();
}
$ct = new stdclass(); <!--添加这行-->
$ct->name = $current_theme;
问题解决。
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!