From 31d672860ea632f5ba900a00a8f31d99a5e462f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Joahny?= Date: Tue, 6 Dec 2016 14:03:25 +0100 Subject: [PATCH] Fixes notice when we use WP List Table quick edit --- admin/core/um-admin-roles.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/core/um-admin-roles.php b/admin/core/um-admin-roles.php index d115ba82..3db9263c 100644 --- a/admin/core/um-admin-roles.php +++ b/admin/core/um-admin-roles.php @@ -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 { } -} \ No newline at end of file +}