我目前正在使用 Wordpress 开发 2 个站点,并由一个共享主机托管,该主机由几个不同的 WP 狂热者推荐给我。
站点 1 将是一个中高容量的博客。通过我的共享主机的一键安装,它附带了插件W3 Total Cache,根据我阅读的所有内容,它是最好的。
2个问题。首先,每次我上传主题时,我都会在管理员中收到以下错误:
每当我尝试更改 W3 Total Cache 中的设置时,我都会在管理员中收到大约 15 到 20 个以下错误:
Notice: get_theme is deprecated since version 3.4! Use wp_get_theme( $stylesheet )
instead. in /home/jpweber/public_html/wp-includes/functions.php on line 2824
Notice: get_themes is deprecated since version 3.4! Use wp_get_themes() instead. in
/home/jpweber/public_html/wp-includes/functions.php on line 2824
无论我安装什么主题,我都会在网站的每个页面顶部收到以下 3 个错误:
Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support(
'custom-background', $args ) instead. in /home/jpweber/public_html/wp-includes
/functions.php on line 2824
Notice: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead. in
/home/jpweber/public_html/wp-includes/functions.php on line 2824
Notice: Undefined variable: output in /home/jpweber/public_html/wp-content/themes/respo
/functions/theme-actions.php on line 138
我没有对functions.php进行任何更改,我已经下载了functions.php的新副本,我已经检查了functions.php文件以查看作者主页上的任何答案是否适用,但我已经没有答案。
更新:
作为参考,这是我在 functions.php 中的第 2821-2828 行:
// Allow plugin to filter the output error trigger
if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) {
if ( ! is_null($replacement) )
trigger_error( sprintf( __('%1$s is <strong>deprecated</strong>
since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) );
else
trigger_error( sprintf( __('%1$s is <strong>deprecated</strong>
since version %2$s with no alternative available.'), $function, $version ) );
}
}
在我的 theme_actions.php 文件中,这是第 138 行:
$output .= ' {font:'.$font_nav["style"].' '.$font_nav["size"].'px/1.5em
'.stripslashes($font_nav["face"]).';color:'.$font_nav["color"].'}' . "\n";