[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:59:22 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  |
------------------------------------+---------------------

Comment (by r-a-y):

 In [changeset:"10765"]:
 {{{
 #!CommitTicketReference repository="" revision="10765"
 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.

 See #7055 (trunk)
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7055#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list