mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Multisite: Remove redundant is_super_admin() when checking for edit_others_posts.
The super admin on multisite as well as the administrator on non-multisite both have this capability already. For custom post types using different capabilities this change ensures that only users with that capability have permissions. Fixes #39059. See #37616. git-svn-id: https://develop.svn.wordpress.org/trunk@39539 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1420,7 +1420,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
if ( post_type_supports( $screen->post_type, 'author' ) ) :
|
||||
$authors_dropdown = '';
|
||||
|
||||
if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) :
|
||||
if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) :
|
||||
$users_opt = array(
|
||||
'hide_if_only_one_author' => false,
|
||||
'who' => 'authors',
|
||||
|
||||
Reference in New Issue
Block a user