WordPress 4.3
[autoinstalls/wordpress.git] / wp-includes / class-wp-error.php
index c1b07ab6374a5efa935c0329a5a3fc1c20f5a3ca..0969b12e33aa7a1f2f213982cd5f9eac514a66bb 100644 (file)
@@ -144,7 +144,7 @@ class WP_Error {
         * @since 2.1.0
         *
         * @param string|int $code Optional. Error code.
-        * @return mixed Null, if no errors.
+        * @return mixed Error data, if it exists.
         */
        public function get_error_data($code = '') {
                if ( empty($code) )
@@ -152,7 +152,6 @@ class WP_Error {
 
                if ( isset($this->error_data[$code]) )
                        return $this->error_data[$code];
-               return null;
        }
 
        /**