Fatal error: Uncaught Error: Call to undefined function create_function()
-
У кого на PHP 8 ошибка в 456 строке
Fatal error: Uncaught Error: Call to undefined function create_function() in /***/wp-content/plugins/wp-russian-typograph/wp-russian-typograph.php:456 Stack trace: #0
Замените
$pee = preg_replace_callback('/<(script|style).*?<\/\1>/s', create_function('$matches', 'return str_replace("\n", "", $matches[0]);'), $pee);замените на
$pee = preg_replace_callback('/<(script|style).*?<\/\1>/s', function($matches) {
return str_replace("\n", "", $matches[0]);
}, $pee);
The topic ‘Fatal error: Uncaught Error: Call to undefined function create_function()’ is closed to new replies.