[wp-trac] [WordPress Trac] #43205: Allow filtering the list of characters to be replaced by wptexturize

WordPress Trac noreply at wordpress.org
Thu Feb 1 18:41:48 UTC 2018


#43205: Allow filtering the list of characters to be replaced by wptexturize
-----------------------------+-----------------------------
 Reporter:  cyclic           |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Formatting       |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 I'd like to selectively disable the replacement of a subset of the
 characters replaced by wptexturize.

 There are already filters to control which html tags & shortcodes are
 exempt from being texturized: `no_texturize_shortcodes` &
 `no_texturize_tags`.

 I think a similar filter should exist to control which characters are
 texturized. This filter would take at least two parameters:
 `$dynamic_characters` & `$dynamic_replacements`.

 I am interested in writing a patch if you'll consider it. Would this
 enhancement be acceptable?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43205>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list