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 +}