Multisite: Replace `is_super_admin()` with `update_core` for update permissions.
Fixes #39060. See #37616. Built from https://develop.svn.wordpress.org/trunk@39540 git-svn-id: http://core.svn.wordpress.org/trunk@39480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
72380176dc
commit
da4cc4d9e2
|
@ -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' ) )
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-39539';
|
$wp_version = '4.8-alpha-39540';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue