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

WordPress Trac noreply at wordpress.org
Mon Oct 7 21:14:05 UTC 2013


#24085: wpautop filter and shortcodes
--------------------------+-----------------------------
 Reporter:  Looimaster    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Shortcodes    |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------

Comment (by lkraav):

 Is the original bug report example written in Visual or Text mode?

 I've just discovered that it's hugely important for the
 [http://core.trac.wordpress.org/browser/tags/3.6.1/wp-
 includes/formatting.php#L233 wpautop() $pees array] to have double line
 breaks to properly separate shortcodes from content. Visual editor adds
 double line break automatically, but in Text mode you need to do it
 manually.

 Text mode example:
 {{{
 [TBS_ROW]

 [TBS_SPAN size="6"]

 Don't start your content earlier than here

 [/TBS_SPAN]

 [/TBS_ROW]
 }}}

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


More information about the wp-trac mailing list