[wp-trac] [WordPress Trac] #26697: HTML5 Galleries
WordPress Trac
noreply at wordpress.org
Wed Mar 5 23:42: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 |
-------------------------------------------------+-------------------------
Comment (by ScottSmith):
Replying to [comment:16 SergeyBiryukov]:
> 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
I recognize that, but how are theme developers anticipated to support
gallery short code styling again, now that Core doesn't print the styles
for free? Are theme developers supposed to copy the gallery_shortcode
function, modify it, and put it into their themes? Or is there a more sane
way of supporting galleries?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26697#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list