[wp-trac] [WordPress Trac] #10734: Gallery Shortcode Causes XHTML Validation Failure

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 21 01:06:10 UTC 2011

#10734: Gallery Shortcode Causes XHTML Validation Failure
 Reporter:  achmafooma    |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Future Release
Component:  Gallery       |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |

Comment (by hakre):

 Replying to [comment:17 chipbennett]:
 > Does r16865 change the output location of the generated <style> content,
 so that it outputs in the document head, rather than in the body?

 No, not at all as the code shows.

 You need to bring it together with some additional code to "fix" the

 add_filter( 'use_default_gallery_style', '__return_false' );

 and provide the needed CSS on your own.

 See [https://core.trac.wordpress.org/browser/tags/3.1/wp-
 content/themes/twentyten/functions.php#L282 WP 3.1 Default Theme

Ticket URL: <http://core.trac.wordpress.org/ticket/10734#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list