Multisite: Replace is_super_admin()
with update_core
for update permissions.
Fixes #39060. See #37616. git-svn-id: https://develop.svn.wordpress.org/trunk@39540 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6e02c370bf
commit
fd4b770d7e
@ -28,8 +28,9 @@ if ( is_multisite() ) {
|
|||||||
$submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
|
$submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! is_multisite() || is_super_admin() )
|
if ( ! is_multisite() || current_user_can( 'update_core' ) ) {
|
||||||
$update_data = wp_get_update_data();
|
$update_data = wp_get_update_data();
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! is_multisite() ) {
|
if ( ! is_multisite() ) {
|
||||||
if ( current_user_can( 'update_core' ) )
|
if ( current_user_can( 'update_core' ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user