From 1e9446310af384712ccd89364755724e3725c1fe Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 15 Apr 2017 17:30:48 +0000 Subject: [PATCH] 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 --- wp-admin/network/site-new.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/network/site-new.php b/wp-admin/network/site-new.php index 0be051ec87..f36dffb522 100644 --- a/wp-admin/network/site-new.php +++ b/wp-admin/network/site-new.php @@ -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', diff --git a/wp-includes/version.php b/wp-includes/version.php index 5b520b9aea..0a421fc865 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.