[wp-trac] [WordPress Trac] #44332: Hook retreive_password (depricated) should be removed

WordPress Trac noreply at wordpress.org
Sat Jun 9 10:01:38 UTC 2018


#44332: Hook retreive_password (depricated) should be removed
------------------------------+------------------------------
 Reporter:  subrataemfluence  |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Users             |     Version:  1.5.1
 Severity:  normal            |  Resolution:
 Keywords:  dev-feedback      |     Focuses:
------------------------------+------------------------------
Changes (by birgire):

 * version:   => 1.5.1


Comment:

 There's also the
 [https://developer.wordpress.org/reference/functions/do_action_deprecated/
 do_action_deprecated()] function introduced in 4.6:

 > When an action hook is deprecated, the do_action() call is replaced with
 {{{do_action_deprecated()}}}, which triggers a deprecation notice and then
 fires the original hook.

 Similarly the {{{apply_filters_deprecated()}}} function.

 So in this case it might be:

 {{{
 do_action_deprecated( 'retreive_password', array( $user->user_login ),
 '1.5.1', 'retrieve_password' );

 }}}

 It would be interesting to scan the wordpress.org plugin repository to see
 if any plugin is using this deprecated filter.

 @subrataemfluence, what do you think about this kind of approach, before
 removing?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44332#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list