Shortcode in text
-
When you have shortcodes in the text and using an replace of text in it then it goes wrong.
The [] are not beeing ignored like the <> are.
I changed line 233 in linkify-text.php to:
$text = preg_replace("|(?![<\[].*?)\b$old_text\b(?![^<>]*?[\]>])|$preg_flags", $new_text, $text, $limit );
- The topic ‘Shortcode in text’ is closed to new replies.