[wp-trac] [WordPress Trac] #14819: Gallery shortcode output does not validate.

WordPress Trac noreply at wordpress.org
Tue Jul 12 16:55:45 UTC 2022


#14819: Gallery shortcode output does not validate.
-------------------------------------+------------------------
 Reporter:  jameslaws                |       Owner:  chriscct7
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Gallery                  |     Version:  3.0.1
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------
Changes (by desrosj):

 * status:  reviewing => closed
 * resolution:   => wontfix


Comment:

 I'm going to close this out. Changing this would definitely be bad for
 backwards compatibility in themes.

 However, after this ticket was created the markup output by a gallery
 shortcode was changed in [27302] to use `<figure>`, `<div>` and
 `<figcaption>` tags instead when a theme opts in to HTML5 markup using
 `add_theme_support( 'html5', 'gallery' );` (see #26697). So while this was
 not technically fixed, it is fixed in the sense that valid HTML5 markup
 can be used instead of the `<dl>`, `<dt>` and `<dd>` tags that were used
 previously.

 I've opened up #56206 as a follow up to this to improve the historical
 references within the function's documentation in the form of `@since`
 tags documenting when certain attributes were added and changes like the
 ones in [27302] were made.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/14819#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list