Docs: Improve description of get_term() return value.

Props sebastian.pisula.
Fixes #35919.
Built from https://develop.svn.wordpress.org/trunk@36634


git-svn-id: http://core.svn.wordpress.org/trunk@36601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2016-02-23 16:48:25 +00:00
parent b47a3831ee
commit c5b77145a8
2 changed files with 4 additions and 3 deletions

View File

@ -813,8 +813,9 @@ function get_tax_sql( $tax_query, $primary_table, $primary_id_column ) {
* @param string $taxonomy Optional. Taxonomy name that $term is part of.
* @param string $output Constant OBJECT, ARRAY_A, or ARRAY_N
* @param string $filter Optional, default is raw or no WordPress defined filter will applied.
* @return mixed Type corresponding to `$output` on success or null on failure. When `$output` is `OBJECT`,
* a WP_Term instance is returned. If taxonomy does not exist then WP_Error will be returned.
* @return array|WP_Term|WP_Error|null Object of the type specified by `$output` on success. When `$output` is 'OBJECT',
* a WP_Term instance is returned. If taxonomy does not exist, a WP_Error is
* returned. Returns null for miscellaneous failure.
*/
function get_term( $term, $taxonomy = '', $output = OBJECT, $filter = 'raw' ) {
if ( empty( $term ) ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36633';
$wp_version = '4.5-alpha-36634';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.