[wp-trac] [WordPress Trac] #29915: Deprecate admin_created_user_subject()

WordPress Trac noreply at wordpress.org
Fri Oct 10 05:04:37 UTC 2014


#29915: Deprecate admin_created_user_subject()
-------------------------+-----------------------
 Reporter:  jeremyfelt   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  4.1
Component:  Users        |    Version:
 Severity:  normal       |   Keywords:  has-patch
  Focuses:  multisite    |
-------------------------+-----------------------
 In [https://mu.trac.wordpress.org/changeset/1529 MU:1529], a
 `wpmu_signup_user_notification_subject` filter was added which called
 `admin_created_user_subject()` to set the subject of an invite email when
 a new user was added. A similar filter and function were added for the
 email content itself.

 In the merge, [12722], the filter and function for the email were brought
 over into `wp-admin/user-new.php`, but only the function for the subject
 was brought over—not the filter.

 It doesn't appear to have been missed. :)

 The strange part about deprecating this is `admin_create_user_subject()`
 is currently defined only when `wp-admin/user-new.php` is accessed in
 multisite. Once deprecated, it will be loaded into memory more often. But,
 we really don't need it.

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


More information about the wp-trac mailing list