エラーメッセー
Notice: add_custom_image_header の使用はバージョン 3.4 から非推奨になっています! 代わりに add_theme_support( 'custom-header', $args ) を使ってください。 wp-includes/functions.php on line 3658
functions.phpには「add_custom_image_header」を探しても見当たらないので、
どこを修正してよいか分かりません。ご回答よろしくお願いします。
functions.php on line 3658 付近を抜粋
function
1 2 /** 3 * Fires when a deprecated function is called. 4 * 5 * @since 2.5.0 6 * 7 * @param string $function The function that was called. 8 * @param string $replacement The function that should have been called. 9 * @param string $version The version of WordPress that deprecated the function. 10 */ 11 do_action( 'deprecated_function_run', $function, $replacement, $version ); 12 13 /** 14 * Filter whether to trigger an error for deprecated functions. 15 * 16 * @since 2.5.0 17 * 18 * @param bool $trigger Whether to trigger the error for deprecated functions. Default true. 19 */ 20 if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) { 21 if ( function_exists( '__' ) ) { 22 if ( ! is_null( $replacement ) ) 23 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) ); 24
修正箇所まで見つけられ修正ましたが、
add_custom_image_header('','admin_header_style');
↓
add_theme_support( 'custom-header', $args );
エラーします。
Notice: Undefined variable: args in
修正法お願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。