WordPress.org

Making WordPress.org

Opened 4 years ago

Closed 4 years ago

#1428 closed defect (fixed)

Content in Code Reference is HTML encoded, breaking code samples

Reported by: morganestes Owned by: 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.


4 years ago

#2 @coffee2code
4 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.