]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-error.php
Wordpress 3.2
[autoinstalls/wordpress.git] / wp-includes / class-wp-error.php
index 1624195833c9d1ea37f4a9b05a018e5347bd2cfa..ba4de05d77e8024cd2e6fbb4aa1e24eb5596c54a 100644 (file)
@@ -38,7 +38,7 @@ class WP_Error {
        var $error_data = array();
 
        /**
        var $error_data = array();
 
        /**
-        * PHP4 Constructor - Sets up error message.
+        * Constructor - Sets up error message.
         *
         * If code parameter is empty then nothing will be done. It is possible to
         * add multiple messages to the same code, but with other methods in the
         *
         * If code parameter is empty then nothing will be done. It is possible to
         * add multiple messages to the same code, but with other methods in the
@@ -54,7 +54,7 @@ class WP_Error {
         * @param mixed $data Optional. Error data.
         * @return WP_Error
         */
         * @param mixed $data Optional. Error data.
         * @return WP_Error
         */
-       function WP_Error($code = '', $message = '', $data = '') {
+       function __construct($code = '', $message = '', $data = '') {
                if ( empty($code) )
                        return;
 
                if ( empty($code) )
                        return;