[wp-trac] [WordPress Trac] #45308: Use duplicate hook reference syntax for duplicates of 'link_category' and `pre_user_login`

WordPress Trac noreply at wordpress.org
Wed Nov 7 22:42:59 UTC 2018


#45308: Use duplicate hook reference syntax for duplicates of 'link_category' and
`pre_user_login`
--------------------------+-----------------------------
 Reporter:  coffee2code   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  2.2
 Severity:  minor         |   Keywords:  has-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 `link_category` and `pre_user_login` appear to be the last remaining hooks
 that are defined in more than one place and still uniquely documented in
 each place. The convention for duplicated hooks is for one instance of the
 hook to be considered canonical with full documentation while all
 subsequent instances get documented with a special comment referencing
 that canonical documentation.

 See attached patch for fix.

 ''Related: the hook `user_confirmed_action_email_content` is also
 duplicated, but each instance's documentation differs in meaningful ways.
 See #44314 for discussion on the matter (particularly my
 [https://core.trac.wordpress.org/ticket/44314#comment:19 pertinent
 comment]).''

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45308>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list