From 3a190792bace77c9937809238cf810e686f7e161 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 20 Jun 2017 18:28:46 +0000 Subject: [PATCH] Docs: Add missing `@param` and `@return` descriptions for `has_term_meta()`, `wp_delete_category()`, and `wp_term_is_shared()`. Props keesiemeijer. Fixes #41096. Built from https://develop.svn.wordpress.org/trunk@40917 git-svn-id: http://core.svn.wordpress.org/trunk@40767 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 11 ++++++----- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 0c4012242c..dadfad2e38 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1247,8 +1247,8 @@ function update_termmeta_cache( $term_ids ) { * * @global wpdb $wpdb WordPress database abstraction object. * - * @param int $term_id - * @return array|false + * @param int $term_id Term ID. + * @return array|false Array with meta data, or false when the meta table is not installed. */ function has_term_meta( $term_id ) { // Bail if term meta table is not installed. @@ -1816,7 +1816,7 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) { * * @since 2.0.0 * - * @param int $cat_ID + * @param int $cat_ID Category term ID. * @return bool|int|WP_Error Returns true if completes delete action; false if term doesn't exist; * Zero on attempted deletion of default Category; WP_Error object is also a possibility. */ @@ -3820,8 +3820,9 @@ function wp_get_split_term( $old_term_id, $taxonomy ) { * * @since 4.4.0 * - * @param int $term_id - * @return bool + * @param int $term_id Term ID. + * @return bool Returns false if a term is not shared between multiple taxonomies or + * if splittng shared taxonomy terms is finished. */ function wp_term_is_shared( $term_id ) { global $wpdb; diff --git a/wp-includes/version.php b/wp-includes/version.php index 674a54dff3..3176abeeda 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-40916'; +$wp_version = '4.9-alpha-40917'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.