[wp-trac] [WordPress Trac] #30531: Make wptexturize the last filter before output

WordPress Trac noreply at wordpress.org
Thu Nov 27 20:43:01 UTC 2014


#30531: Make wptexturize the last filter before output
-------------------------+-----------------------------
 Reporter:  azaozz       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Formatting   |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  4.2-early    |     Focuses:
-------------------------+-----------------------------

Comment (by azaozz):

 We've discussed this with @miqrogroove some time ago and it seems the best
 way forward.

 A simple workaround for the `no_texturize_shortcodes` filter would be to
 insert markers around these shortcodes, and remove them after
 wptexturize() (as discussed in
 https://core.trac.wordpress.org/ticket/29608#comment:13).

 Alternatively that filter can be deprecated, depending on how many plugins
 are using it. Certain HTML tags are excluded from texturizing, and more
 can be added by plugins. For example the `[code]` shortcode would be
 replaced by `<pre>` or `<code>` tag, both of which are excluded.

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


More information about the wp-trac mailing list