WordPress.org

Making WordPress.org

Opened 3 years ago

Closed 3 years ago

#2311 closed defect (fixed)

Parsed source code displays one line too many

Reported by: keesiemeijer Owned by: coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords: has-patch
Cc:

Description

The function get_source_code() returns one line too many. This can result in displaying broken source code. For example, the last curly bracket } should not be displayed in these posts.

Attachments (1)

2311.patch (956 bytes) - added by keesiemeijer 3 years ago.
Parse correct number of source lines

Download all attachments as: .zip

Change History (3)

@keesiemeijer
3 years ago

Parse correct number of source lines

#1 @keesiemeijer
3 years ago

  • Keywords has-patch added

#2 @coffee2code
3 years ago

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

In 4554:

developer.wordpress.org: Fix source code display including an extra line.

Props keesiemeijer.
Fixes #2311.

Note: See TracTickets for help on using tickets.