Merge pull request #211 from ajoah/patch-1

Fixes notice when we use WP List Table quick edit
This commit is contained in:
Champ Camba
2016-12-07 22:53:00 +08:00
committed by GitHub
+3 -3
View File
@@ -11,8 +11,8 @@ class UM_Admin_Roles {
}
function remove_row_actions( $actions, $post ){
global $current_screen, $ultimatemember;
if( $current_screen->post_type != 'um_role' ) return $actions;
global $ultimatemember;
if( $post->post_type != 'um_role' ) return $actions;
if( $ultimatemember->query->is_core( $post->ID ) ){
unset( $actions['trash'] );
@@ -83,4 +83,4 @@ class UM_Admin_Roles {
}
}
}