Make WordPress Core


Ignore:
Timestamp:
11/17/2020 07:19:37 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r49329 r49635  
    15061506    if ( $is_wp_error ) {
    15071507        /**
    1508          * Fires when `is_wp_error()` is called and it's an instance of `WP_Error`.
     1508         * Fires when `is_wp_error()` is called and its parameter is an instance of `WP_Error`.
    15091509         *
    15101510         * @since 5.6.0
     
    15121512         * @param WP_Error $thing The error object passed to `is_wp_error()`.
    15131513         */
    1514         do_action( 'wp_error_checked', $thing );
     1514        do_action( 'is_wp_error_instance', $thing );
    15151515    }
    15161516
Note: See TracChangeset for help on using the changeset viewer.