Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#512 closed defect (bug) (fixed)

htmlentities are processed in inline source code

Reported by: atimmer's profile atimmer Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords: needs-patch


You can see this bug in action at the following page:

The str_replace there is very weird, what is should say is the following:

$content = str_replace( ']]>', ']]>', $content 

Somehow htmlentities are processed. Maybe the source code needs an esc_html() even though it is in a pre.

Change History (3)

This ticket was mentioned in IRC in #wordpress-meta by sams. View the logs.

10 years ago

#2 @coffee2code
10 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 714:

Code Reference: use htmlentities() instead of esc_html() for source code display. Fixes #512

Note: See TracTickets for help on using tickets.