#5466 closed defect (bug) (fixed)
bp_core_filter_user_welcome_email() should not run in the admin
Reported by: | SergeyBiryukov | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.0 | Priority: | normal |
Severity: | normal | Version: | 1.7 |
Component: | Core | Keywords: | has-patch |
Cc: | james@… |
Description
The function was introduced in [2773] and moved to a separate file in [2832].
The function description says that it will not fire when a user is registered by the site admin:
tags/1.9.2/bp-core/bp-core-filters.php#L196
However, that is no longer true since [6439], where the is_admin()
check was removed (without any clarification in the commit message). See the support thread that led to this ticket.
The same applies to bp_core_filter_blog_welcome_email()
.
Attachments (1)
Change History (6)
#3
@
11 years ago
- Owner set to boonebgorges
- Resolution set to fixed
- Status changed from new to closed
In 8137:
#4
@
11 years ago
Thank you for this great support. I have patched my site. I would like to close the thread on the WordPress support forum.
- Which release of BuddyPress will this fix appear in?
- When will this release appear?
This looks correct to me. My guess is that the
is_admin()
check was removed from the global scope, with the intention of moving it into the function scope as in 5466.patch, but it was forgotten about. Thanks for the research and the patch.