[wp-trac] Re: [WordPress Trac] #6380: the_excerpt & [gallery]

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 2 10:01:25 GMT 2008


#6380: the_excerpt & [gallery]
----------------------------+-----------------------------------------------
 Reporter:  DD32            |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  normal          |    Milestone:  2.5.1    
Component:  Administration  |      Version:  2.5      
 Severity:  normal          |   Resolution:           
 Keywords:  has-patch       |  
----------------------------+-----------------------------------------------
Comment (by westi):

 Replying to [comment:4 tellyworth]:
 >
 > Seems to me that the cost of scanning forward for {{{[gallery]}}} tags
 and conditionally including an inline stylesheet is out of proportion to
 the (minor) benefit of not serving up the gallery stylesheet on pages that
 don't use it.
 >

 I would prefer if a publish/save post hook set a post meta variable for
 the posts that said they contained a gallery shortcode that way a single
 query should be able to find out if we are going to display a gallery for
 the current page I think.

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


More information about the wp-trac mailing list