From 15245415c7b07cf49949382cbfa69c29ab210997 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 25 Feb 2016 21:24:10 +0000 Subject: [PATCH] Docs: Improve the description of the `get_object_taxonomies()` function. Uncertainty has no place in documentation. See #32246 git-svn-id: https://develop.svn.wordpress.org/trunk@36712 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 29ff8a0efb..43f10db455 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -156,13 +156,16 @@ function get_taxonomies( $args = array(), $output = 'names', $operator = 'and' ) } /** - * Return all of the taxonomy names that are of $object_type. + * Return the names or objects of the taxonomies which are registered for the requested object or object type, such as + * a post object or post type name. * - * It appears that this function can be used to find all of the names inside of - * $wp_taxonomies global variable. + * Example: * - * `$taxonomies = get_object_taxonomies( 'post' )` Should - * result in `Array( 'category', 'post_tag' )` + * $taxonomies = get_object_taxonomies( 'post' ); + * + * This results in: + * + * Array( 'category', 'post_tag' ) * * @since 2.3.0 *