From 6e5ca746e19029b02e0a2074c295e53529932a0d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 Sep 2020 11:13:05 +0000 Subject: [PATCH] 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 --- wp-includes/load.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index 7a79fc1a63..702459d601 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -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; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index f3e72b103e..f880bf1fc5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.