diff --git a/wp-includes/class-wp-user.php b/wp-includes/class-wp-user.php index 0b0bb1023a..7cf311dbad 100644 --- a/wp-includes/class-wp-user.php +++ b/wp-includes/class-wp-user.php @@ -748,6 +748,9 @@ class WP_User { // Everyone is allowed to exist. $capabilities['exist'] = true; + // Nobody is allowed to do things they are not allowed to do. + unset( $capabilities['do_not_allow'] ); + // Must have ALL requested caps. foreach ( (array) $caps as $cap ) { if ( empty( $capabilities[ $cap ] ) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 5a1e1dd7e9..56990d6c4f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-40992'; +$wp_version = '4.9-alpha-40993'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.