[buddypress-trac] [BuddyPress Trac] #7055: Emails: Attempting to use bp_send_mail() on non-root blogs fails
buddypress-trac
noreply at wordpress.org
Sat May 14 17:58:29 UTC 2016
#7055: Emails: Attempting to use bp_send_mail() on non-root blogs fails
------------------------------------+---------------------
Reporter: r-a-y | Owner: r-a-y
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.5.3
Component: API - Emails | Version: 2.5.0
Severity: normal | Resolution: fixed
Keywords: dev-feedback has-patch |
------------------------------------+---------------------
Changes (by r-a-y):
* owner: => r-a-y
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"10764"]:
{{{
#!CommitTicketReference repository="" revision="10764"
Emails: Register our email type taxonomy at all times.
Fixes an issue where attempting to use `bp_get_email()` /
`bp_send_email()`
on a non-root blog would fail.
In `bp_get_email()`, `get_posts()` is used to fetch our email post type.
Since we are doing a taxonomy query in `get_posts()`,
`WP_Tax_Query::clean_query`
attempts to see if our taxonomy exists. Since our taxonomy did not exist
on
non-root blogs, the taxonomy SQL clauses would not be added and
`bp_get_email()` would fail.
See #WP20541 for more details.
Fixes #7055 (2.5-branch)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7055#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list