Wer seit dem Update auf 4.2 Probleme mit Ladezeiten hat (sobald er eingeloggt ist) oder allgemein die neuen Emojis nicht verwenden möchte, kann diese Snippet in die functions.php
packen, sodass dieses Feature komplett deaktiviert wird.
Ein Bekannter hat u.A. mit Yoast und den Emojis ein Problem: Sobald in den Meta-Angaben ein Emoji verwendet wird, setzten sich die kompletten Einstellungen zurück.
[pastacode lang=“php“ manual=“function%20disable_emojis()%20%7B%0A%09remove_action(%20’wp_head’%2C%20’print_emoji_detection_script’%2C%207%20)%3B%0A%09remove_action(%20’admin_print_scripts’%2C%20’print_emoji_detection_script’%20)%3B%0A%09remove_action(%20’wp_print_styles’%2C%20’print_emoji_styles’%20)%3B%0A%09remove_action(%20’admin_print_styles’%2C%20’print_emoji_styles’%20)%3B%09%0A%09remove_filter(%20’the_content_feed’%2C%20’wp_staticize_emoji’%20)%3B%0A%09remove_filter(%20’comment_text_rss’%2C%20’wp_staticize_emoji’%20)%3B%09%0A%09remove_filter(%20’wp_mail’%2C%20’wp_staticize_emoji_for_email’%20)%3B%0A%09add_filter(%20’tiny_mce_plugins’%2C%20’disable_emojis_tinymce’%20)%3B%0A%7D%0Aadd_action(%20’init’%2C%20’disable_emojis’%20)%3B%0A%0Afunction%20disable_emojis_tinymce(%20%24plugins%20)%20%7B%0A%09if%20(%20is_array(%20%24plugins%20)%20)%20%7B%0A%09%09return%20array_diff(%20%24plugins%2C%20array(%20’wpemoji’%20)%20)%3B%0A%09%7D%20else%20%7B%0A%09%09return%20array()%3B%0A%09%7D%0A%7D“ message=““ highlight=““ provider=“manual“/]
Keine Kommentare vorhanden