WordPress.org

Make WordPress Core

Changeset 39540


Ignore:
Timestamp:
12/07/2016 10:13:34 PM (18 months ago)
Author:
flixos90
Message:

Multisite: Replace is_super_admin() with update_core for update permissions.

Fixes #39060. See #37616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu.php

    r38827 r39540  
    2929}
    3030
    31 if ( ! is_multisite() || is_super_admin() )
     31if ( ! is_multisite() || current_user_can( 'update_core' ) ) {
    3232    $update_data = wp_get_update_data();
     33}
    3334
    3435if ( ! is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.