У кого на 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);
This is a very useful plugin for better Russian typography, but it has several issues, so I disabled it:
– bug when you are using “” (quotes) in the end of picture’s caption
– bug with “” (quotes), when you use it in list (li) with link (href)
– bug in comments section: it wraps all lines in paragraph tag (p), even if it’s just line break (autop – doesn’t work).