From fd4b770d7e3d425c96ea9de92676798d42ffb7f7 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 7 Dec 2016 22:13:34 +0000 Subject: [PATCH] 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 --- src/wp-admin/menu.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/menu.php b/src/wp-admin/menu.php index 2fd146bd1a..f258e5639b 100644 --- a/src/wp-admin/menu.php +++ b/src/wp-admin/menu.php @@ -28,8 +28,9 @@ if ( is_multisite() ) { $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(); +} if ( ! is_multisite() ) { if ( current_user_can( 'update_core' ) )