Changeset 10536
- Timestamp:
- 02/06/2016 01:11:09 AM (10 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
-
bp-core-taxonomy.php (modified) (1 diff)
-
classes/class-bp-core.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-taxonomy.php
r10474 r10536 27 27 28 28 // Email type. 29 register_taxonomy( 30 bp_get_email_tax_type(), 31 bp_get_email_post_type(), 32 apply_filters( 'bp_register_email_tax_type', array( 33 'description' => _x( 'BuddyPress email types', 'email type taxonomy description', 'buddypress' ), 34 'labels' => bp_get_email_tax_type_labels(), 35 'meta_box_cb' => 'bp_email_tax_type_metabox', 36 'public' => false, 37 'query_var' => false, 38 'rewrite' => false, 39 'show_in_menu' => false, 40 'show_tagcloud' => false, 41 'show_ui' => bp_current_user_can( 'bp_moderate' ), 42 ) ) 43 ); 29 if ( bp_is_root_blog() && ! is_network_admin() ) { 30 register_taxonomy( 31 bp_get_email_tax_type(), 32 bp_get_email_post_type(), 33 apply_filters( 'bp_register_email_tax_type', array( 34 'description' => _x( 'BuddyPress email types', 'email type taxonomy description', 'buddypress' ), 35 'labels' => bp_get_email_tax_type_labels(), 36 'meta_box_cb' => 'bp_email_tax_type_metabox', 37 'public' => false, 38 'query_var' => false, 39 'rewrite' => false, 40 'show_in_menu' => false, 41 'show_tagcloud' => false, 42 'show_ui' => bp_current_user_can( 'bp_moderate' ), 43 ) ) 44 ); 45 } 44 46 } 45 47 add_action( 'bp_register_taxonomies', 'bp_register_default_taxonomies' ); -
trunk/src/bp-core/classes/class-bp-core.php
r10518 r10536 299 299 300 300 // Emails 301 if ( bp_is_root_blog() ) {301 if ( bp_is_root_blog() && ! is_network_admin() ) { 302 302 register_post_type( 303 303 bp_get_email_post_type(),
Note: See TracChangeset
for help on using the changeset viewer.