[wp-trac] [WordPress Trac] #44332: Hook retreive_password (depricated) should be removed
WordPress Trac
noreply at wordpress.org
Mon Jun 11 09:14:06 UTC 2018
#44332: Hook retreive_password (depricated) should be removed
------------------------------+-----------------------------
Reporter: subrataemfluence | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Users | Version: 1.5.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
------------------------------+-----------------------------
Comment (by subrataemfluence):
Perfect! I love the idea. Still a learner :)
Replying to [comment:1 birgire]:
> 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
[https://developer.wordpress.org/reference/functions/apply_filters_deprecated/
apply_filters_deprecated()] function for deprecated filters.
>
> So in this case it might be replaced with:
>
> {{{
> 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:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list