[wp-trac] [WordPress Trac] #28575: Eliminate redundant preg_match() to improve wptexturize() performance

WordPress Trac noreply at wordpress.org
Thu Jun 19 12:26:51 UTC 2014


#28575: Eliminate redundant preg_match() to improve wptexturize() performance
-------------------------------------+-----------------------------
 Reporter:  dllh                     |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  4.0
Component:  Formatting               |     Version:  3.9
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  performance
-------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-testing => has-patch needs-testing


Comment:

 Indeed, looks like [attachment:28575.patch] would be a correct solution
 here.

 But even if it was a typo, how does [28776] corrupt HTML output? All
 texturize unit tests still pass, including the
 [source:trunk/tests/phpunit/tests/formatting/WPTexturize.php?rev=28773#L753
 multiplication test].

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


More information about the wp-trac mailing list