WordPress.org

Make WordPress Core

Ticket #28319: 28319.diff

File 28319.diff, 389 bytes (added by ebinnion, 7 years ago)

Adds hook docs to action.

  • wp-includes/class-wp-error.php

    diff --git a/wp-includes/class-wp-error.php b/wp-includes/class-wp-error.php
    index b048584..3413bf7 100644
    a b public function __construct($code = '', $message = '', $data = '') { 
    6262
    6363                if ( ! empty($data) )
    6464                        $this->error_data[$code] = $data;
     65
     66                do_action( 'create_wp_error', $this );
    6567        }
    6668
    6769        /**