[wp-trac] [WordPress Trac] #33587: Notification Functions Should be Replaced by Hooks

WordPress Trac noreply at wordpress.org
Mon Sep 14 02:44:43 UTC 2015


#33587: Notification Functions Should be Replaced by Hooks
-------------------------+------------------
 Reporter:  dshanske     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.4
Component:  Mail         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------

Comment (by boonebgorges):

 In [changeset:"34107"]:
 {{{
 #!CommitTicketReference repository="" revision="34107"
 Send password-change email notifications via hook.

 `wp_password_change_notification()` is now called at the
 'after_password_reset'
 action, rather than being invoked directly from the `reset_password()`
 function.

 In order to make it possible to call `wp_password_change_notification()`
 as a
 `do_action()` callback, the function signature has to be changed so that
 the
 `$user` parameter is expected to be a value rather than a reference. Since
 PHP 5.0, objects are passed by reference, so `&$user` was unnecessary
 anyway.

 Props dshanske, thomaswm.
 See #33587.
 }}}

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


More information about the wp-trac mailing list