Opened 9 years ago
Closed 9 years ago
#2881 closed defect (bug) (fixed)
The fix for unintended markdown is too greedy
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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)
Note: See
TracTickets for help on using
tickets.
In 5579: