Errors appear when using [faqcombo] shortcode
-
Error messages below appear above the output of a [faqcombo] shortcode::
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /Applications/MAMP/htdocs.shineonled/wp-content/plugins/wordpress-faq-manager/faq-manager.php on line 810
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /Applications/MAMP/htdocs.shineonled/wp-content/plugins/wordpress-faq-manager/faq-manager.php on line 811
havent looked at your code but note that i came up with a fix for this in another plugin recently, here is what i did, you canfollow this example:
This:
$controllerName = preg_replace(
‘%(^’ . preg_quote(self::PREFIX, ‘%’) . ‘|_).%e’,
‘strtoupper(“$0”)’,
str_replace(‘-‘, ‘_’, $page)
);
// capitalize prefix and first letters of class name partswas replaced with this:
$controllerName = preg_replace_callback(
‘%(^’ . preg_quote(self::PREFIX, ‘%’) . ‘|_).%’,
create_function (‘$matches’, ‘return strtoupper($matches[0]);’),
str_replace(‘-‘, ‘_’, $page)
); // capitalize prefix and first letters of class name parts
The topic ‘Errors appear when using [faqcombo] shortcode’ is closed to new replies.