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

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 7 08:03:36 UTC 2010

#10734: Gallery Shortcode Causes XHTML Validation Failure
 Reporter:  achmafooma    |       Owner:                
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  Gallery       |     Version:                
 Severity:  normal        |    Keywords:  has-patch     
Changes (by archon810):

 * cc: admin@… (added)


 I'd like to add to this discussion that this inline style breaks plugins
 that override the excerpt function, specifically

 Advanced Excerpt is quite useful but if a gallery is inserted, the style
 tags are stripped and the CSS is displayed in clear text.

 A partial workaround is to modify wp-includes/kses.php and add 'style' to
 the list, then check it in Advanced Excerpt's configuration, so that it
 doesn't strip the <style> tags.

 Another workaround is to use the plugin mentioned earlier in this ticket.

 I am quite shocked, frankly, that the gallery does something this

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

More information about the wp-trac mailing list