[wp-trac] [WordPress Trac] #13288: Shortcodes getting wrapped with a "p" tag by rich editor

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 29 00:15:29 UTC 2012


#13288: Shortcodes getting wrapped with a "p" tag by rich editor
--------------------------+----------------------
 Reporter:  aizatto       |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Shortcodes    |     Version:
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |
--------------------------+----------------------
Changes (by azaozz):

 * keywords:  has-patch =>
 * status:  assigned => closed
 * resolution:   => wontfix
 * milestone:  Future Release =>


Comment:

 Even if we remove the <p> around a shortcode, TinyMCE will wrap it in
 another <p> as it forces base blocks on cleanup. Seems the proper thing to
 do is to always run the content through `shortcode_unautop()` on display
 even if wpautop is not used.

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


More information about the wp-trac mailing list