Making WordPress.org

Opened 10 years ago

Closed 10 years ago

#524 closed defect (bug) (fixed)

Source block strips escape characters

Reported by: clorith's profile Clorith Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Description

This makes the syntax highlighting incorrect, as well as mis-representing the quality of our code base.

See for example http://developer.wordpress.org/reference/functions/_wp_specialchars/ Line 8 where an escape in the regex is stripped out.

Change History (2)

#2 @coffee2code
10 years ago

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

In 722:

Code Reference: Pass source code through addslashes() to preserve slashes when stored in postmeta. Fixes #524

Note: See TracTickets for help on using tickets.