Opened 15 years ago
Closed 15 years ago
#9821 closed defect (bug) (fixed)
wp_specialchars doesn't capture pre-encoded entities correctly
Reported by: | westi | Owned by: | westi |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | Formatting | Keywords: | |
Focuses: | Cc: |
Description
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)); }
Attachments (2)
Change History (5)
#1
@
15 years ago
- Cc sambauers added
CC: sambauers as this may affect bbPress as well.
Once committed will need to merge into BackPress trunk
Related ticket is #8767
Note: See
TracTickets for help on using
tickets.
Proposed fix to wp_specialchars so that it catches all existing entities