mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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
This commit is contained in:
parent
01ab2e9060
commit
ee3585ac1e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user