]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-error.php
Wordpress 3.6
[autoinstalls/wordpress.git] / wp-includes / class-wp-error.php
index ba4de05d77e8024cd2e6fbb4aa1e24eb5596c54a..bbfcebc444b960dc1cb0d6eda450b51c4a202379 100644 (file)
@@ -70,7 +70,7 @@ class WP_Error {
         * @since 2.1.0
         * @access public
         *
         * @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) )
         */
        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.
         * @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.
         */
        function get_error_messages($code = '') {
                // Return all messages if no code specified.
@@ -194,13 +194,11 @@ class WP_Error {
 /**
  * Check whether variable is a WordPress Error.
  *
 /**
  * Check whether variable is a WordPress Error.
  *
- * Looks at the object and if a WP_Error class. Does not check to see if the
- * parent is also WP_Error, so can't inherit WP_Error and still use this
- * function.
+ * Returns true if $thing is an object of the WP_Error class.
  *
  * @since 2.1.0
  *
  *
  * @since 2.1.0
  *
- * @param mixed $thing Check if unknown variable is WordPress Error object.
+ * @param mixed $thing Check if unknown variable is a WP_Error object.
  * @return bool True, if WP_Error. False, if not WP_Error.
  */
 function is_wp_error($thing) {
  * @return bool True, if WP_Error. False, if not WP_Error.
  */
 function is_wp_error($thing) {
@@ -208,5 +206,3 @@ function is_wp_error($thing) {
                return true;
        return false;
 }
                return true;
        return false;
 }
-
-?>
\ No newline at end of file