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

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 25 07:02:33 GMT 2008


#6380: the_excerpt & [gallery]
----------------------------+-----------------------------------------------
 Reporter:  DD32            |       Owner:  anonymous  
     Type:  defect          |      Status:  new        
 Priority:  normal          |   Milestone:  2.7        
Component:  Administration  |     Version:  2.5        
 Severity:  normal          |    Keywords:  needs-patch
----------------------------+-----------------------------------------------
 Having a post such as:
 {{{
 Source: http://...

 [gallery]
 }}}

 and using the_except() will produce a post such as:

 {{{
 <p>Source: http://...</p>
 <p>                     .gallery {<br />
                                 margin: auto;<br />
                         }<br />
                         .gallery-item {<br />
                                 float: left;<br />
                                 margin-top: 10px;<br />
                                 text-align: center;<br />
                                 width: 33%;                     }<br />
                         .gallery img {<br />
                                 border: 2px solid #cfcfcf;<br />
                         }<br />
                         .gallery-caption {<br />
                                 margin-left: 0;<br />
                         }</p>
 }}}

 Looks like the_excerpt should de-register the shortcodes the_content
 filter first, trim it, apply the shortcodes to the trimmed except, and
 then re-attach the shortcodes filter?

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


More information about the wp-trac mailing list