WordPress:Notice: get_screen_iconエラーの対応方法
WordPress:Notice: get_screen_iconエラーの対応方法
get_screen_iconはwordpress3.8移行使われていないようなので、該当箇所をコメントアウトで対応しました。
if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) { if ( function_exists( '__' ) ) { if ( ! is_null( $replacement ) ) { /* translators: 1: PHP function name, 2: version number, 3: alternative function name */ trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) ); } else { /* translators: 1: PHP function name, 2: version number */ // trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.'), $function, $version ) ); } } else { 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 ) ); } } }
wp-includes-functions.php
3842行目
参考サイト
https://forums.envato.com/t/how-to-remove-this-warning-for-wordpress/77312
get_screen_icon()