SHOW:
|
|
- or go back to the newest paste.
1 | function pm_remove_emojis($regex) { | |
2 | $regex = str_replace('[^', '(%f0%9f%[\w]{2}%[\w]{2}|[^', $regex); | |
3 | $regex = str_replace(']/ui', '])/ui', $regex); | |
4 | ||
5 | - | var_dump($regex); |
5 | + | |
6 | } | |
7 | add_filter('permalink_manager_sanitize_regex', 'pm_remove_emojis', 1); |