[wp-trac] [WordPress Trac] #9821: wp_specialchars doesn't capture
pre-encoded entities correctly
WordPress Trac
wp-trac at lists.automattic.com
Thu May 14 18:08:16 GMT 2009
#9821: wp_specialchars doesn't capture pre-encoded entities correctly
--------------------------+-------------------------------------------------
Reporter: westi | Owner: westi
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Formatting | Version: 2.8
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Working on updating some of the wordpress-tests test cases for the
formatting code to work with the new special chars and it looks like the
capture of pre-encoded entities doesn't work correct.
Test Cases are here:
http://svn.automattic.com/wordpress-tests/wp-
testcase/jacob/TestFormatting.php
The one that fails is:
{{{
function test_ignores_existing_entities() {
$source = '& £  &';
$res = '& £  &';
$this->assertEquals($res, wp_specialchars($source));
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9821>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list