#28466 closed enhancement (wontfix)
Remove unused/misleading variable in wpmu_signup_blog_notification()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.0 |
| Component: | Login and Registration | Keywords: | has-patch |
| Focuses: | multisite | Cc: |
Description
The $message variable in wpmu_signup_blog_notification() contains an unused $key variable that is now part of the $activate_url var. It's been removed from the string in the sprintf call but not from the variables passed to it.
The attached patch removes the unnecessary and unused variable.
Attachments (1)
Change History (6)
#2
@
12 years ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
The addition of this $key variable dates back to changeset MU1977 due to the reasoning in ticket MU1119
It's interesting the ticket mentions adding $key to the filter, though it's really adding it to be used in sprintf().
It is possible that somebody is using the wpmu_signup_blog_notification_email filter to alter the original message to account for that 3rd variable. Because of this, I don't think that we can remove it.
#3
@
12 years ago
But the $key variable isn't actually passed to the sprintf call. There's only two placeholders and the $key variable is a third. Which isn't actually available in the string. Unless I'm mis-reading it, Jeremy?
Remove unused variable in wpmu_signup_blog_notification()