[wp-trac] [WordPress Trac] #19100: Introduce esc_color()

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 3 01:54:49 UTC 2011


#19100: Introduce esc_color()
------------------------------------+------------------------------
 Reporter:  mfields                 |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  General                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by mbijon):

 I speed tested several different methods & the one I went with in
 19100.2.diff _might_ be the best of three alternatives. Note that it's
 30-35% faster than _mfields strpos() methods when a hash exists, but is
 3-8% slower when there's no character to be trimmed.

 Also, my regex seems good, but I'd like if it could be tested more.

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


More information about the wp-trac mailing list