X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..3d39054f012aefe514b3f5509e32f09fc4feda44:/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 ) {