[wp-trac] [WordPress Trac] #24085: wpautop filter and shortcodes

WordPress Trac noreply at wordpress.org
Mon Apr 15 20:56:56 UTC 2013


#24085: wpautop filter and shortcodes
--------------------------+------------------------------
 Reporter:  Looimaster    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by azaozz):

 No, autop treats the string `[shortcode]` as text and wraps it on <p>,
 then the firts <p> and last </p> are removed for known shortcodes.
 Removing redundant line breaks from inside the shortcode, or at least the
 first and last one should work properly:

 {{{
 [shortcode]<div><img src=""></div>
 <div><img src=""></div>
 <div><img src=""></div>[/shortcode]
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24085#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list