[wp-trac] [WordPress Trac] #28623: Optimize the wptexturize() Loop

WordPress Trac noreply at wordpress.org
Wed Jun 25 17:48:22 UTC 2014


#28623: Optimize the wptexturize() Loop
-----------------------------------+-----------------------------
 Reporter:  miqrogroove            |       Owner:  wonderboymusic
     Type:  enhancement            |      Status:  closed
 Priority:  normal                 |   Milestone:  4.0
Component:  Formatting             |     Version:  1.5
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  wptexturize has-patch  |     Focuses:
-----------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28831"]:
 {{{
 #!CommitTicketReference repository="" revision="28831"
 Optimize the `wptexturize()` loop:
 * Take the ampersand pattern out of the loop for speed.
 * Fix old bugs in the ampersand pattern.
 * Refactor `_wptexturize_pushpop_element()` without PCRE for speed.
 * Update unit tests.

 Props miqrogroove.
 Fixes #28623.
 }}}

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


More information about the wp-trac mailing list