Thread:Extension talk:WYSIWYG/Media: links get mangled (fully patched 1.19)/reply (7)

It should change automatically, are you sure you added the first snippet of code at line 720? (must be before parent::parse is called)

For example the following block of code:

$text = ' [[Media:example.pdf|Example PDF]] '; $text = preg_replace("/(\[\[)(Media:.*?\]\])/", '$1:$2', $text); echo $text;

outputs:

Media:Example Link