One of the most annoying features ever in WordPress is the "feature" to convert smilies into images of smileys, MSN style. Where lots of stuff like this is dismissed these days as "plugin territory", this annoying feature has been in WP since 0.71...
Anyway, sometimes you'll want to disable this feature from within your theme, or maybe even as a sitewide plugin to disable it all over your WordPress MU installation. It's pretty simple to do:
function yst_remove_smileys($bool) { return false; } add_filter('option_use_smilies','yst_remove_smileys',99,1);
If you want to do that sitewide, add a plugin header to it and throw it in the mu-plugins dir of your WordPress MU installation.






So this would do exactly the same as disabling the emoticon-option under 'Settings' > 'Writing'?
Yes, but for all blogs in a WP MU installation at once :)
This is something I have been wanting to do for so long now. These things just mess up the line-spacing in the comments etc. Smilies are also being mis-used these days. People believe that horrid, sarcastic remarks are somehow justified if you add a smiley to the end. Now if only you could figure out a way of getting rid of the mentioned comments.
Why cant you just use
add_filter('option_use_smilies',false,99,1);
?
Buhahahaha :)
I am saying something useful
I've been trying to remove these non-seo optimized smileys for some time. This is great!
Informative post. You are doing very well job! keep it up.