[wp-trac] [WordPress Trac] #19411: do_shortcode() runs before wpautop() in the text widget

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 2 00:06:40 UTC 2011


#19411: do_shortcode() runs before wpautop() in the text widget
--------------------------+-----------------
 Reporter:  nacin         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  3.3
Component:  General       |    Version:  3.3
 Severity:  major         |   Keywords:
--------------------------+-----------------
 Follow-up from #10457, where do_shortcode was added to widget_text.

 wpautop() is conditionally run against widget text after the widget_text
 filter fires. This means that do_shortcode() will run before wpautop(),
 and it's possible for shortcode_unautop() to run when wpautop() isn't run
 at all.

 Coming up with a patch with a suggested solution.

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


More information about the wp-trac mailing list