I just happened to checked my code on my Wordpress 4.2 blog and noticed that there was lots of js and css that I hadn't added to my site.
Well my first thought was I'd been hacked but a quick search on Google showed that emojis and smileys support has been added out of the box in Wordpress 4.2.
For my own site I have no need to add this support so have looked around to see what I can do about removing unneeded js and css.
There are currently two options:
- Use a plugin
- Add some code to your functions.php file
This is the plugin that I found to work:
Just install the plugin and enable. This plug-in works on my multi-site installation too.
To remove using functions.php just add the following to it:
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'wp_print_styles', 'print_emoji_styles' );
Either method works but if possible use the functions.php method as it means you won't need to keep another plugin up to date.
For anyone who uses the 'old' smilies and finds that they are broken, install the plugin from Samuel Wood (Otto) - classic smilies: