Coding Standards: Use Yoda conditions in `wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php`.

Props jenilk.
Fixes #49150.
Built from https://develop.svn.wordpress.org/trunk@47050


git-svn-id: http://core.svn.wordpress.org/trunk@46850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-01-08 11:32:02 +00:00
parent 967f43a6cb
commit ea6e0cc3ca
2 changed files with 2 additions and 2 deletions

View File

@ -609,7 +609,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
sort( $request_params );
// If only 'id' and 'roles' are specified (we are only trying to
// edit roles), then only the 'promote_user' cap is required.
if ( $request_params === array( 'id', 'roles' ) ) {
if ( array( 'id', 'roles' ) === $request_params ) {
return true;
}
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-alpha-47049';
$wp_version = '5.4-alpha-47050';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.