[buddypress-trac] [BuddyPress Trac] #6892: Email taxonomy registered on wrong site in multisite

buddypress-trac noreply at wordpress.org
Wed Feb 10 19:52:05 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:                    |

Comment (by imath):

 6892.02.patch is switching blog inside `bp_version_updater()`.

 The patch on #6891 is fixing the taxonomy issue when the upgrade happens
 when on the root blog or in the network admin.

 But if we are in the edge case Christian shared here: being in a subsite
 when upgrading, the terms are not created. Maybe the blog hasn't switched
 yet when the hook `bp_register_taxonomies` is fired.

 Should we also switch to blog inside `bp_register_default_taxonomies()` ??
 or do something like the following snippet inside
 `bp_core_install_emails()` ?

 if ( ! taxonomy_exists( bp_get_email_tax_type() ) ) {
    do_action( 'bp_register_taxonomies' );

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6892#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list