mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
Correct @return value for term_exists().
props simonwheatley. fixes #28538. Built from https://develop.svn.wordpress.org/trunk@28753 git-svn-id: http://core.svn.wordpress.org/trunk@28567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
46a4208f6b
commit
16595af731
@ -1681,7 +1681,8 @@ function get_terms( $taxonomies, $args = '' ) {
|
||||
* @param string $taxonomy The taxonomy name to use
|
||||
* @param int $parent ID of parent term under which to confine the exists search.
|
||||
* @return mixed Returns 0 if the term does not exist. Returns the term ID if no taxonomy is specified
|
||||
* and the term ID exists. Returns an array of the term ID and the taxonomy if the pairing exists.
|
||||
* and the term ID exists. Returns an array of the term ID and the term taxonomy ID
|
||||
* if the taxonomy is specified and the pairing exists.
|
||||
*/
|
||||
function term_exists($term, $taxonomy = '', $parent = 0) {
|
||||
global $wpdb;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.0-alpha-20140613';
|
||||
$wp_version = '4.0-alpha-20140614';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user