[wp-trac] [WordPress Trac] #12061: Treatment of shortcodes by wpautop is incomplete

WordPress Trac noreply at wordpress.org
Tue Sep 9 17:44:57 UTC 2014


#12061: Treatment of shortcodes by wpautop is incomplete
-------------------------------+-----------------------------
 Reporter:  gcorne             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Future Release
Component:  Shortcodes         |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  wpautop has-patch  |     Focuses:
-------------------------------+-----------------------------
Changes (by DrewAPicture):

 * keywords:  needs-patch wpautop => wpautop has-patch


Comment:

 I like where this is going, though I'm not a big fan of
 'no_unautop_shortcodes' -- as it's effectively a double negative.

 So rather than leveraging the filter to specify the shortcodes that should
 be skipped, I think it would be more the "WordPress way" to simply make
 the `$shortcode_tags` array filterable here. If a developer wants to skip
 a tag, they can unset it via the filter.

 This is demonstrated in [attachment:12061.2.diff]. I've also added hook
 docs.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/12061#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list