[wp-trac] [WordPress Trac] #4539: Abbreviated year followed by punctuation or markup doesn't texturize
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 11 17:16:10 UTC 2010
#4539: Abbreviated year followed by punctuation or markup doesn't texturize
--------------------------+-------------------------------------------------
Reporter: pah2 | Owner: jmstacey
Type: defect (bug) | Status: reopened
Priority: low | Milestone: 3.1
Component: Formatting | Version: 2.5
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-------------------------------------------------
Comment(by norbertm):
@nacin - As for performance, it's hard to tell because it highly depends
on the strings that are passed to it. The original test suite did not pass
and many tests were skipped so there's nothing to compare against. What
would you suggest for benchmarking this? Please keep in mind that the
original function returns incorrect results so we may be comparing code
that generates incorrect vs correct output.
As for optimization, I was able to replace a preg_replace() to an
str_replace() and a while() loop to a single if() by realizing the same
could be accomplished with these better performing functions/constructs.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/4539#comment:46>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list