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
_sto keep it as simple as possible.
- Filter the shortcode attributes and override the tag parameters. Since the
shortcode_atts_galleryfilter was introduced in 3.6, you’ll be backwards compatible with the latest two versions.