#29915 closed enhancement (fixed)
Deprecate admin_created_user_subject()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Users | Keywords: | has-patch commit |
Focuses: | multisite | Cc: |
Description
In 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.
Attachments (1)
Change History (6)
#3
follow-up:
↓ 5
@
10 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
After talking with @nacin last week about this, it looks like we can delete admin_created_user_subject()
entirely.
It was previously only available on user-new.php
in multisite and never used in MU as a callback to the original filter. At the worst, if a developer was reusing that filter configuration, they would see a notice.
#5
in reply to:
↑ 3
@
10 years ago
Replying to jeremyfelt:
After talking with @nacin last week about this, it looks like we can delete
admin_created_user_subject()
entirely.
I just reviewed [30176] and was coming to this ticket to note I agreed with removing it. Now I'm also noting I don't remember that conversation from 6 weeks ago, so thank you for documenting it. :-)
In 30005: