preg_replace() modifier /e depricated
-
Plugin version 3.0
error message when wp_debug is enabled:
Undefined: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in plugins/strictly-autotags/strictlyautotags.class.php on line 1344$content = preg_replace("/(\.[”’\"]?\s*[A-Z][a-z]+\s[a-z])/e","strtolower('$1')",$content);
replace with
$content = preg_replace_callback("/(\.[”’\"]?\s*[A-Z][a-z]+\s[a-z])/", function ($matches) { return strtolower($matches[0]); }, $content);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘preg_replace() modifier /e depricated’ is closed to new replies.