mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fixes notice when we use WP List Table quick edit
This commit is contained in:
committed by
Aurélien Joahny
parent
312dbb6e41
commit
31d672860e
@@ -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 {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user