There’s been a lot of talk about the upcoming release of WordPress 3.5, in specific the new Media Manager. To say it’s sexy is an understatement. The core team (@Koop in particular) put a lot of work into it, and it shows.
One thing I noticed while beta testing my plugins was the new UI around the media buttons. One of my plugins, Schema Creator, uses a button in the same row to load the form. Well, the existing icon setup matched 3.4, but 3.5 released a new look along with text within the button container. So now mine looked woefully out of place.
And we can’t have that, can we? Here’s an example of the difference:
Now, the entire media loader is different. No more Thickbox at all. So there’s certainly a lot to be done. But for the launch, I wanted to make sure my UI was consistent. So while I wanted those who update to 3.5 to have a solid UI, I didn’t want to startle those who aren’t on 3.4. And I also wanted to update it before the release, since we’re all busy and I didn’t want to wait until after it went live.
So I wrote a small function to do a version check and load the button markup based on which version they had.
WP Core Version Check
You can do just about anything you’d like with that. All I did was change the button markup and add a span for an image. But you could do everything from load different JS files (which I plan on doing soon) or add / remove UI elements. The world, as they say, is your oyster.