Make WordPress Core


Ignore:
Timestamp:
06/20/2017 06:27:53 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing @param and @return descriptions for has_term_meta(), wp_delete_category(), and wp_term_is_shared().

Props keesiemeijer.
Fixes #41096.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r40916 r40917  
    12481248 * @global wpdb $wpdb WordPress database abstraction object.
    12491249 *
    1250  * @param int $term_id
    1251  * @return array|false
     1250 * @param int $term_id Term ID.
     1251 * @return array|false Array with meta data, or false when the meta table is not installed.
    12521252 */
    12531253function has_term_meta( $term_id ) {
     
    18171817 * @since 2.0.0
    18181818 *
    1819  * @param int $cat_ID
     1819 * @param int $cat_ID Category term ID.
    18201820 * @return bool|int|WP_Error Returns true if completes delete action; false if term doesn't exist;
    18211821 *  Zero on attempted deletion of default Category; WP_Error object is also a possibility.
     
    38213821 * @since 4.4.0
    38223822 *
    3823  * @param int $term_id
    3824  * @return bool
     3823 * @param int $term_id Term ID.
     3824 * @return bool Returns false if a term is not shared between multiple taxonomies or
     3825 *              if splittng shared taxonomy terms is finished.
    38253826 */
    38263827function wp_term_is_shared( $term_id ) {
Note: See TracChangeset for help on using the changeset viewer.