From ee3585ac1e1cf6ff9fb5a2cab4c3a12cada0927e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 17 Nov 2020 19:19:37 +0000 Subject: [PATCH] General: Rename the `wp_error_checked` action to `is_wp_error_instance` for clarity. Follow-up to [49022], [49023]. Props johnbillion, helen, johnjamesjacoby, Mte90, alexstandiford, hellofromTonya, jnylen0, SergeyBiryukov. Fixes #40568. git-svn-id: https://develop.svn.wordpress.org/trunk@49635 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/load.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php index 8d9161adc2..6bd7614ecd 100644 --- a/src/wp-includes/load.php +++ b/src/wp-includes/load.php @@ -1505,13 +1505,13 @@ function is_wp_error( $thing ) { if ( $is_wp_error ) { /** - * Fires when `is_wp_error()` is called and it's an instance of `WP_Error`. + * Fires when `is_wp_error()` is called and its parameter is an instance of `WP_Error`. * * @since 5.6.0 * * @param WP_Error $thing The error object passed to `is_wp_error()`. */ - do_action( 'wp_error_checked', $thing ); + do_action( 'is_wp_error_instance', $thing ); } return $is_wp_error;