From d0044e16446bedda5628e1f3876353d226072382 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 25 Feb 2016 21:25:25 +0000 Subject: [PATCH] Docs: Improve the description of the `get_object_taxonomies()` function. Uncertainty has no place in documentation. See #32246 Built from https://develop.svn.wordpress.org/trunk@36712 git-svn-id: http://core.svn.wordpress.org/trunk@36679 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 13 ++++++++----- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 29ff8a0efb..43f10db455 100644 --- a/wp-includes/taxonomy.php +++ b/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 * diff --git a/wp-includes/version.php b/wp-includes/version.php index 1ce297c2a3..8531ab1a1e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-beta1-36711'; +$wp_version = '4.5-beta1-36712'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.