Enqueue js at tax pages

This commit is contained in:
nikitasinelnikov
2017-03-24 18:06:45 +02:00
committed by GitHub
parent a72a8861d3
commit bfb6bc460a
+6 -4
View File
@@ -226,10 +226,10 @@ class UM_Admin_Enqueue {
***/
function is_UM_admin(){
global $current_screen, $post;
global $current_screen, $post, $tax;
$screen_id = $current_screen->id;
if ( !is_admin() ) return false;
if ( strstr( $screen_id, 'ultimatemember') || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') )return true;
@@ -238,6 +238,8 @@ class UM_Admin_Enqueue {
if ( isset( $post->post_type ) ) return true;
if ( isset( $tax->name ) ) return true;
return false;
}
@@ -290,4 +292,4 @@ class UM_Admin_Enqueue {
}
}
}