0

私は現在、Wordpressを使用して2つのサイトを開発しており、2人の異なるWP狂信者から推薦された共有ホストによってホストされています。

サイト1は中規模から大量のブログになります。私の共有ホストのワンクリックインストールでは、プラグインW3 Total Cacheが付属していました。これは、私が読んだすべての点で、最高です。

2つの問題。1つは、テーマをアップロードするたびに、adminで次のエラーが発生することです。

W3 Total Cacheの設定を変更しようとすると、adminで次のエラーが約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

また、どのテーマをインストールしても、Webサイトのすべてのページの上部に次の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";
4

1 に答える 1

1

通知は、何をすべきかを教えてくれます。かなり説明的です。通知をフォローアップするか、エラーレベルを通知より低く設定して、メッセージが表示されなくなるようにします(ただし推奨されません)。

于 2013-01-10T00:01:10.417 に答える