]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-term.php
WordPress 4.7.2
[autoinstalls/wordpress.git] / wp-includes / class-wp-term.php
index d53d5184942b864c6c47c25784bf9bc4f5e0ca02..8eb87efbe03daf862b48688620dddcbc661058e2 100644 (file)
@@ -176,7 +176,7 @@ final class WP_Term {
 
                        // Don't return terms from invalid taxonomies.
                        if ( ! taxonomy_exists( $_term->taxonomy ) ) {
-                               return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy' ) );
+                               return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) );
                        }
 
                        $_term = sanitize_term( $_term, $_term->taxonomy, 'raw' );
@@ -250,7 +250,6 @@ final class WP_Term {
                                }
 
                                return sanitize_term( $data, $data->taxonomy, 'raw' );
-                               break;
                }
        }
 }