[wp-trac] [WordPress Trac] #22286: Enhancing backslashit performance

WordPress Trac noreply at wordpress.org
Mon Oct 29 16:34:29 UTC 2012


#22286: Enhancing backslashit performance
-------------------------+------------------------------
 Reporter:  jbutkus      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Formatting   |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by jbutkus):

 I have attached modified DIFF, where {{{ /(a-z)/i }}} is escaped using {{{
 addcslashes }}} instead of {{{ preg_replace }}}. Former is inteded for
 just this task, while {{{ preg_replace }}} is too generic, and adds
 unnecessary, at this time, overhead.

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


More information about the wp-trac mailing list