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

Props flixos90

See #39156

Built from https://develop.svn.wordpress.org/trunk@40433


git-svn-id: http://core.svn.wordpress.org/trunk@40331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2017-04-15 17:30:48 +00:00
parent 7ee5878a9c
commit 1e9446310a
2 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,9 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
/** WordPress Translation Install API */
require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
if ( ! current_user_can( 'manage_sites' ) )
if ( ! current_user_can( 'create_sites' ) ) {
wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) );
}
get_current_screen()->add_help_tab( array(
'id' => 'overview',

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40432';
$wp_version = '4.8-alpha-40433';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.