[wp-trac] Re: [WordPress Trac] #6064: Gallery should not link to non-images as if they were images.

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 5 21:50:25 GMT 2008


#6064: Gallery should not link to non-images as if they were images.
--------------------------+-------------------------------------------------
 Reporter:  Nightgunner5  |        Owner:  anonymous
     Type:  defect        |       Status:  new      
 Priority:  normal        |    Milestone:  2.5      
Component:  General       |      Version:  2.5      
 Severity:  normal        |   Resolution:           
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by Nightgunner5):

 The [gallery] shortcode currently prints out a div inside a paragraph,
 along with a style tag.

 The style tag should only be used inside the header, the div tag should
 not be used inside a p tag.

 == How this can be fixed ==
   * div inside of p
     * If a [gallery] tag is immediately next to the beginning or end of a
 paragraph, move the p tag to the other side of the gallery.
     * If the [gallery] tag is the only thing in a paragraph, completely
 remove the p tag.
   * style outside of head
     * Have theme authors add the styles needed directly to their
 templates' stylesheets.
     * Somehow move the style tag into the head tag.  ''I don't think this
 is possible.''

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6064#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list