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
This commit is contained in:
Sergey Biryukov 2017-06-20 18:28:46 +00:00
parent 92175dbd33
commit 3a190792ba
2 changed files with 7 additions and 6 deletions

View File

@ -1247,8 +1247,8 @@ function update_termmeta_cache( $term_ids ) {
* *
* @global wpdb $wpdb WordPress database abstraction object. * @global wpdb $wpdb WordPress database abstraction object.
* *
* @param int $term_id * @param int $term_id Term ID.
* @return array|false * @return array|false Array with meta data, or false when the meta table is not installed.
*/ */
function has_term_meta( $term_id ) { function has_term_meta( $term_id ) {
// Bail if term meta table is not installed. // Bail if term meta table is not installed.
@ -1816,7 +1816,7 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) {
* *
* @since 2.0.0 * @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; * @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. * 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 * @since 4.4.0
* *
* @param int $term_id * @param int $term_id Term ID.
* @return bool * @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 ) { function wp_term_is_shared( $term_id ) {
global $wpdb; global $wpdb;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.