Making WordPress.org

Opened 8 years ago

Closed 8 years ago

#1428 closed defect (bug) (fixed)

Content in Code Reference is HTML encoded, breaking code samples

Reported by: morganestes's profile morganestes Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords: has-screenshots
Cc:

Description

Brought to my attention in Slack yesterday, the post content in the Code Reference function references posts is HTML encoded, so things like => in array declarations turn into =>. Comments (contributed examples) are parsed okay and show the expected output; it's just the main post content that gets messed up.

https://developer.wordpress.org/reference/functions/add_query_arg/ is an example reference page that shows this in action.

https://cldup.com/IZH6jIa9Lw.png

Change History (2)

This ticket was mentioned in Slack in #docs by morganestes. View the logs.


8 years ago

#2 @coffee2code
8 years ago

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

In 2153:

developer.wordpress.org: Decode HTML entities in explanation code blocks.

Fixes #1428.

Note: See TracTickets for help on using tickets.