[wp-meta] [Making WordPress.org] #2880: Regex for @see linking of hooks recognize hook names contain variables
Making WordPress.org
noreply at wordpress.org
Thu Jun 15 22:48:35 UTC 2017
#2880: Regex for @see linking of hooks recognize hook names contain variables
---------------------------+--------------------------
Reporter: coffee2code | Owner: coffee2code
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Developer Hub | Resolution: fixed
Keywords: |
---------------------------+--------------------------
Changes (by coffee2code):
* owner: => coffee2code
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"5578"]:
{{{
#!CommitTicketReference repository="" revision="5578"
developer.wordpress.org: Change regex for `@see` linking of hooks to
recognize characters and HTML entities that may be present in hook names.
This is valid `{@see 'comment_$new_status_$comment->comment_type'}` but
failed to be recognized as a hook due to the presence of `&` and `;` (from
the encoded value of `>`) and the `-`.
Example:
https://developer.wordpress.org/reference/functions/wp_transition_comment_status/
Fixes #2880.
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2880#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list