General: Give the `$is` variable in `is_wp_error()` a more descriptive name.

Follow-up to [49022].

See #40568.
Built from https://develop.svn.wordpress.org/trunk@49023


git-svn-id: http://core.svn.wordpress.org/trunk@48785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-09-21 11:13:05 +00:00
parent 964d0784be
commit 6e5ca746e1
2 changed files with 4 additions and 4 deletions

View File

@ -1456,9 +1456,9 @@ function wp_doing_cron() {
* @return bool Whether the variable is an instance of WP_Error.
*/
function is_wp_error( $thing ) {
$is = ( $thing instanceof WP_Error );
$is_wp_error = ( $thing instanceof WP_Error );
if ( $is ) {
if ( $is_wp_error ) {
/**
* Fires when `is_wp_error()` is called and it's an instance of `WP_Error`.
*
@ -1469,7 +1469,7 @@ function is_wp_error( $thing ) {
do_action( 'wp_error_checked', $thing );
}
return $is;
return $is_wp_error;
}
/**

View File

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