Fatal error: Uncaught Error: Call to undefined function is_mobile() in /home/kanataku/rouninn.com/public_html/wp-content/themes/giraffe/header.php:53 Stack trace: #0 /home/kanataku/rouninn.com/public_html/wp-includes/template.php(688): require_once() #1 /home/kanataku/rouninn.com/public_html/wp-includes/template.php(647): load_template('/home/kanataku/...', true) #2 /home/kanataku/rouninn.com/public_html/wp-includes/general-template.php(41): locate_template(Array, true) #3 /home/kanataku/rouninn.com/public_html/wp-content/themes/giraffe/home.php(1): get_header() #4 /home/kanataku/rouninn.com/public_html/wp-includes/template-loader.php(74): include('/home/kanataku/...') #5 /home/kanataku/rouninn.com/public_html/wp-blog-header.php(19): require_once('/home/kanataku/...') #6 /home/kanataku/rouninn.com/public_html/index.php(17): require('/home/kanataku/...') #7 {main} thrown in /home/kanataku/rouninn.com/public_html/wp-content/themes/giraffe/header.php on line 53
そのサイトから追加したコードです
add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
上のを追加したことが原因なのでこのコードを消そうとすると(以下引用)
wp-content/themes/giraffe/header.php ファイルの53行目のエラーのため、PHP コードの変更をロールバックしました。修正し、もう一度保存してください。
Uncaught Error: Call to undefined function is_mobile() in wp-content/themes/giraffe/header.php:53
Stack trace:
#0 wp-includes/template.php(688): require_once()
#1 wp-includes/template.php(647): load_template('/home/kanataku/...', true)
#2 wp-includes/general-template.php(41): locate_template(Array, true)
#3 wp-content/themes/giraffe/home.php(1): get_header()
#4 wp-includes/template-loader.php(74): include('/home/kanataku/...')
#5 wp-blog-header.php(19): require_once('/home/kanataku/...')
#6 index.php(17): require('/home/kanataku/...')
#7 {main}
thrown
とでてしまいました。