[wp-trac] [WordPress Trac] #26697: HTML5 Galleries
WordPress Trac
noreply at wordpress.org
Wed Mar 5 23:32:54 UTC 2014
#26697: HTML5 Galleries
-------------------------------------------------+-------------------------
Reporter: obenland | Owner: nacin
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.9
Component: Gallery | Version: 3.8
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback commit | Focuses: template
needs-codex |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch dev-feedback commit => has-patch dev-feedback commit
needs-codex
Comment:
Replying to [comment:15 ScottSmith]:
> Should devs copy the gallery_shortcode function into their themes or is
there a less drastic way of still utilizing the default styles?
Theme developers should add `gallery` to the list of elements they want to
use HTML5 markup for:
{{{
add_theme_support( 'html5', array( 'comment-list', 'comment-form',
'search-form', 'gallery' ) );
}}}
Just noticed that Codex needs an update to reflect this change:
http://codex.wordpress.org/Function_Reference/add_theme_support#HTML5
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26697#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list