WordPress.org

Make WordPress Core

Changeset 29033


Ignore:
Timestamp:
07/08/2014 06:46:56 PM (7 years ago)
Author:
johnbillion
Message:

Add a create_wp_error action which is called when a WP_Error instance is created. Fixes #28319. Props ebinnion

File:
1 edited

Legend:

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

    r28660 r29033  
    6464        if ( ! empty($data) )
    6565            $this->error_data[$code] = $data;
     66
     67        /**
     68         * Fires when a WP_Error object instance is created.
     69         *
     70         * @since 4.0.0
     71         *
     72         * @param WP_Error $this The WP_Error instance.
     73         */
     74        do_action( 'create_wp_error', $this );
    6675    }
    6776
Note: See TracChangeset for help on using the changeset viewer.