WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/29/2011 08:05:12 PM (9 years ago)
Author:
ryan
Message:

Constructor cleanup. Props ocean90. fixes #16768

File:
1 edited

Legend:

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

    r16101 r17771  
    3939
    4040    /**
    41      * PHP4 Constructor - Sets up error message.
     41     * Constructor - Sets up error message.
    4242     *
    4343     * If code parameter is empty then nothing will be done. It is possible to
     
    5555     * @return WP_Error
    5656     */
    57     function WP_Error($code = '', $message = '', $data = '') {
     57    function __construct($code = '', $message = '', $data = '') {
    5858        if ( empty($code) )
    5959            return;
Note: See TracChangeset for help on using the changeset viewer.