[buddypress-trac] [BuddyPress Trac] #6892: Email taxonomy registered on wrong site in multisite
buddypress-trac
noreply at wordpress.org
Thu Feb 11 19:17:38 UTC 2016
#6892: Email taxonomy registered on wrong site in multisite
------------------------------+------------------
Reporter: needle | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.5
Component: Component - Core | Version:
Severity: normal | Resolution:
Keywords: dev-feedback |
------------------------------+------------------
Comment (by imath):
I like @boonebgorges 's idea.
The only trouble is, in the case of emails, it would require some extra
wrapper functions, as `bp_core_install_emails()` is not using one of the
"BP Taxonomy functions" but `wp_set_post_terms()`.
So ideally we'd probably need something like `bp_insert_post_type(
$post_type, $args )`, `bp_set_post_terms()`, `bp_get_post_terms()` ... in
which we would switch/reset blog.
That's, in 03.patch why i've added the switch/reset inside the
`bp_core_install_emails()` as it's used on install or upgrade, and it's
the first and only place we need it so far.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6892#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list