[wp-trac] [WordPress Trac] #10987: Improve wptexturize performance
WordPress Trac
wp-trac at lists.automattic.com
Wed Oct 21 16:04:38 UTC 2009
#10987: Improve wptexturize performance
-------------------------+--------------------------------------------------
Reporter: johanee | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: Performance | Version: 2.9
Severity: major | Keywords: has-patch
-------------------------+--------------------------------------------------
Comment(by westi):
Here is the output for you :-)
{{{
peter-westwoods-computer:wordpress-tests peterwestwood$ php wp-test.php -t
TestWPTexturize
Test Suite
TestWPTexturize
....FFF
Time: 0 seconds
There were 3 failures:
1) test_quotes(TestWPTexturize)
Failed asserting that two strings are equal.
expected string <Here is “<a href="http://example.com">a test with a
link</a>”>
difference <
x>
got string <Here is “<a href="http://example.com">a test with a
link</a>“>
/Users/peterwestwood/Documents/workspace/wordpress-tests/wp-
testcase/test_includes_formatting.php:318
/Users/peterwestwood/Documents/workspace/wordpress-tests/wp-
testlib/base.php:526
/Users/peterwestwood/Documents/workspace/wordpress-tests/wp-test.php:107
2) test_quotes_before_s(TestWPTexturize)
Failed asserting that two strings are equal.
expected string <‘string’>
difference < x>
got string <’string’>
/Users/peterwestwood/Documents/workspace/wordpress-tests/wp-
testcase/test_includes_formatting.php:329
/Users/peterwestwood/Documents/workspace/wordpress-tests/wp-
testlib/base.php:526
/Users/peterwestwood/Documents/workspace/wordpress-tests/wp-test.php:107
3) test_quotes_before_numbers(TestWPTexturize)
Failed asserting that two strings are equal.
expected string <Class of ’99>
difference < x>
got string <Class of ‘99>
/Users/peterwestwood/Documents/workspace/wordpress-tests/wp-
testcase/test_includes_formatting.php:335
/Users/peterwestwood/Documents/workspace/wordpress-tests/wp-
testlib/base.php:526
/Users/peterwestwood/Documents/workspace/wordpress-tests/wp-test.php:107
}}}
So it looks like the only regression is to do with the curly quote
handling
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10987#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list