Patch to make re-slug compatible with WordPress 4.4
-
Re-slug is not campatible with WordPress >= 4.4
The patch below works with 4.4.1 and should still work with earlier versions, though I’ve only been able to test it with 4.4.0 and 4.4.1diff -r1.1 re-slug.php 13c13 < $return = str_replace('Edit</a></span>', 'Edit</a></span> <span id="re-slug" style="display:none;"><a href="#re-slug" class="button button-small hide-if-no-js">Re-slug</a></span>', $return); --- > $return = preg_replace('#Edit</(a|button)></span>#', 'Edit</${1}></span> <span id="re-slug" style="display:none;"><a href="#re-slug" class="button button-small hide-if-no-js">Re-slug</a></span>', $return);
Would it be possible to have this patch applied to the official version?
- The topic ‘Patch to make re-slug compatible with WordPress 4.4’ is closed to new replies.