Making WordPress.org

Opened 7 years ago

Closed 7 years ago

#2881 closed defect (bug) (fixed)

The fix for unintended markdown is too greedy

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

Description

Both wp_transition_comment_status() and wp_transition_post_status() (and likely others) have consecutive hook names that contain underscores. Unfortunately, as is known, underscores in function descriptions are treated as Markdown by the parser (and thus become <em> and </em> tags).

fix_unintended_markdown() exists to fix these. However, its regex is too greedy, fixing only the unintended markup bookending a series of unintended markup. It should capture <em> and </em> pairs ungreedily.

Change History (1)

#1 @coffee2code
7 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.