A gotcha in Wordpress 2.5.1
Posted by Jacques Chester on Tuesday, April 29, 2008
The updated copy of TinyMCE embedded in Wordpress 2.5 has bog ordinary indent and outdent buttons, of this approximate appearance:
.
This button essentially just adds a few extra tags in the HTML that say “push this over to the right by 20 pixels”. That would be fine, except that it buggers up a bunch of other formatting rules set by the stylesheet.
The right thing to do is to use “semantic” markup. For quotes, one should use the blockquote tag. For lists, use the list tags. And so on: these are correctly laid out by the stylesheet which has been carefully tweaked by CSS gurus before I, or Wordpress, gets to mangle them.
If, like I do, you want to turn those buttons off in Wordpress, it’s a bit fiddly. The settings for the rich text editor are buried in wp-includes/js/tinymce/tiny_mce_config.php. Scroll down to the 128th line, which will look something like so:
$mce_buttons_2 = apply_filters('mce_buttons_2', array('formatselect', 'underline',
'justifyfull', 'forecolor', '|', 'pastetext', 'pasteword'...
This line tells the rich text editor what buttons to display. Delete or comment out this bit:
'|', 'outdent', 'indent',
And voila, the offending buttons go away.
General Whinge
This is essentially par for the course for Wordpress.org, of course. A shiny update which breaks things in stupid ways. They talk a lot about their you-beaut new interface (which I don’t think is much of an improvement on the old one), their fancy new uploading scheme (which is less convenient than the boring old one) and their exciting new … well as far as I can tell it was all about shiny things. Not so much about fixing boring bugs for the most part.
It annoys me because I have to bug Ken and Nick to let me upgrade to get access to security patches, which Wordpress.org don’t backport to older versions. Every time I hope it will be a smooth update. Every time I am made to look like a fool.

On and off over the past few months I have received emails to say that our feeds don’t appear in aggregators like Google Reader or Bloglines. Or that they turn up late in big bunches. Or days in arrears.


