X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..607b7e02d77e7326161e8ec15639052d2040f745:/wp-includes/class-wp-term.php diff --git a/wp-includes/class-wp-term.php b/wp-includes/class-wp-term.php index 30a0a8b8..3b4931a0 100644 --- a/wp-includes/class-wp-term.php +++ b/wp-includes/class-wp-term.php @@ -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' ); @@ -237,7 +237,8 @@ final class WP_Term { * @since 4.4.0 * @access public * - * @return mixed + * @param string $key Property to get. + * @return mixed Property value. */ public function __get( $key ) { switch ( $key ) {