]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-error.php
WordPress 3.3.2-scripts
[autoinstalls/wordpress.git] / wp-includes / class-wp-error.php
index 1624195833c9d1ea37f4a9b05a018e5347bd2cfa..b34d0cfdaa7089a22410a77b0bb3cf9bc7789a89 100644 (file)
@@ -38,7 +38,7 @@ class WP_Error {
        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
@@ -54,7 +54,7 @@ class 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;
 
@@ -70,7 +70,7 @@ class WP_Error {
         * @since 2.1.0
         * @access public
         *
-        * @return array List of error codes, if avaiable.
+        * @return array List of error codes, if available.
         */
        function get_error_codes() {
                if ( empty($this->errors) )
@@ -102,7 +102,7 @@ class WP_Error {
         * @since 2.1.0
         *
         * @param string|int $code Optional. Retrieve messages matching code, if exists.
-        * @return array Error strings on success, or empty array on failure (if using codee parameter).
+        * @return array Error strings on success, or empty array on failure (if using code parameter).
         */
        function get_error_messages($code = '') {
                // Return all messages if no code specified.