• У кого на 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);

  • You must be logged in to reply to this topic.