General: Give the $is
variable in is_wp_error()
a more descriptive name.
Follow-up to [49022]. See #40568. git-svn-id: https://develop.svn.wordpress.org/trunk@49023 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2b742beb5c
commit
f7570fec4a
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user