With the new release of WordPress will come the ability to declare support for HTML5 markup in galleries. Once a theme declared support, the definition list elements will be replaced by
<figcaption> for better semantics.
If you decide to not only adopt this new feature but also maintain backwards compatibility, then there are two ways to achieve that:
- Style not only the new HTML5 elements, but also add CSS selectors for the traditional definition list elements. This is the route we chose for
_s to keep it as simple as possible.
- Filter the shortcode attributes and override the tag parameters. Since the
shortcode_atts_gallery filter was introduced in 3.6, you’ll be backwards compatible with the latest two versions.
Speaking of WordPress Themes in 2012, the new WordPress default theme for this year is in da hizzous.
For the 3.4 release cycle the core WordPress team is trying something new: assigning small teams to tackle various parts of the release. The Twenty Twelve team is Matt Mullenweg (Holder of the Keys and Grand Master Themengineer), Drew Strojny (Designer and Minimalist), and Lance Willett (Thematurge).
Want to keep tabs on this new default WordPress theme? Follow development updates on WordPress Development Updates and in Trac: Twenty Twelve ticket and Bundled Themes.
We’re super excited to see it land in WordPress trunk and start taking shape.
If you’re designed out for the day and need something sufficiently geeky to bring you back to midfield, I suggest Andy Skelton’s excellent writeup about a lesser-known but oft-used WordPress string formatting function, WordPress code surprise: wp_sprintf.