Make WordPress Core

Changeset 40433


Ignore:
Timestamp:
04/15/2017 05:29:55 PM (8 years ago)
Author:
johnbillion
Message:

Networks and Sites: Correct a capability check when accessing the Sites -> Add New screen.

Props flixos90

See #39156

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-new.php

    r38814 r40433  
    1414require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    1515
    16 if ( ! current_user_can( 'manage_sites' ) )
     16if ( ! current_user_can( 'create_sites' ) ) {
    1717    wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) );
     18}
    1819
    1920get_current_screen()->add_help_tab( array(
Note: See TracChangeset for help on using the changeset viewer.