WordPress 5.0 PHP8 のエラー修正
wp-includes/script-loader.php
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /www/doc/www.mj-servis.cz/www/wp-includes/script-loader.php on line 706
( '{' == $value{0} && '}' == $value{strlen( $value ) - 1} ) || ( '[' == $value{0} && ']' == $value{strlen( $value ) - 1} ) ||
を
( '{' == $value[0] && '}' == $value[strlen( $value ) - 1] ) || ( '[' == $value[0] && ']' == $value[strlen( $value ) - 1] ) ||
に修正する
wp-includes/formatting.php
wp-includes/load.php
Call to undefined function get_magic_quotes_gpc()
/* if ( get_magic_quotes_gpc() ) $gpc = stripslashes($gpc); */
get_magic_quotes_gpc() を使ってる部分をコメントアウトする(3箇所)