Wordpress/PHP の初心者として、私は混乱しています。たとえば、WP管理者でいくつかのことをしようとすると、W3 Total Cache設定に移動して縮小/有効化ボタンをオフにしてから設定を保存すると、次のエラーが表示されます(そのうち7つ、すべて同じ):
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
管理者で他のことをしているときにも、このエラーが発生します。私はWP 3.5を実行していますが、これは単なるバニラインストールであるため、インストールに付属しているのはfunctions.phpだけであり、W3 Total Cacheには、私が提供している共有ホストが提供するワンクリックインストールが付属しています。
functions.php の 2824 行は次のとおりです。
trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s!
Use %3$s instead.'), $function, $version, $replacement ) );
そのための完全なコード ブロックは次のとおりです。
function _deprecated_function( $function, $version, $replacement = null ) {
do_action( 'deprecated_function_run', $function, $replacement, $version );
// 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 ) );
}
}
どんなガイダンスも大歓迎です!