mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
7ee5878a9c
commit
1e9446310a
@ -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',
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user