From 17fff74795b6ca34a666dac88d5a06396a83bc70 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 13 Oct 2014 17:01:53 +1100 Subject: [PATCH] Remove team from venue hierarchy only --- includes/admin/class-sp-admin-menus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-sp-admin-menus.php b/includes/admin/class-sp-admin-menus.php index 899489c2..74b066d3 100755 --- a/includes/admin/class-sp-admin-menus.php +++ b/includes/admin/class-sp-admin-menus.php @@ -314,7 +314,7 @@ class SP_Admin_Menus { public static function sitemap_taxonomy_post_types( $post_types = array(), $taxonomy ) { $post_types = array_intersect( $post_types, sp_primary_post_types() ); // Remove teams from venues taxonomy post type array - if ( ( $key = array_search( 'sp_team', $post_types ) ) !== false ): + if ( $taxonomy === 'sp_venue' && ( $key = array_search( 'sp_team', $post_types ) ) !== false ): unset( $post_types[ $key ] ); endif;