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
This commit is contained in:
John Blackbourn 2016-02-25 21:25:25 +00:00
parent f3abe1e9be
commit d0044e1644
2 changed files with 9 additions and 6 deletions

View File

@ -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
*

View File

@ -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.