Docs: Update and correct various inline documentation.

See #42505, #41756


git-svn-id: https://develop.svn.wordpress.org/trunk@43177 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2018-05-07 17:19:48 +00:00
parent 9ca9b27110
commit 1decf42f3a
5 changed files with 41 additions and 41 deletions
+9 -9
View File
@@ -810,27 +810,27 @@ function get_term( $term, $taxonomy = '', $output = OBJECT, $filter = 'raw' ) {
}
/**
* Filters a term.
* Filters a taxonomy term object.
*
* @since 2.3.0
* @since 4.4.0 `$_term` can now also be a WP_Term object.
* @since 4.4.0 `$_term` is now a `WP_Term` object.
*
* @param int|WP_Term $_term Term object or ID.
* @param string $taxonomy The taxonomy slug.
* @param WP_Term $_term Term object.
* @param string $taxonomy The taxonomy slug.
*/
$_term = apply_filters( 'get_term', $_term, $taxonomy );
/**
* Filters a taxonomy.
* Filters a taxonomy term object.
*
* The dynamic portion of the filter name, `$taxonomy`, refers
* to the taxonomy slug.
* to the slug of the term's taxonomy.
*
* @since 2.3.0
* @since 4.4.0 `$_term` can now also be a WP_Term object.
* @since 4.4.0 `$_term` is now a `WP_Term` object.
*
* @param int|WP_Term $_term Term object or ID.
* @param string $taxonomy The taxonomy slug.
* @param WP_Term $_term Term object.
* @param string $taxonomy The taxonomy slug.
*/
$_term = apply_filters( "get_{$taxonomy}", $_term, $taxonomy );