Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

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

    r49193 r49927  
    184184 *
    185185 * @param array $catarr The 'cat_ID' value is required. All other keys are optional.
    186  * @return int|bool The ID number of the new or updated Category on success. Zero or FALSE on failure.
     186 * @return int|false The ID number of the new or updated Category on success. Zero or FALSE on failure.
    187187 */
    188188function wp_update_category( $catarr ) {
     
    241241 * @param int    $post_id
    242242 * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
    243  * @return string|bool|WP_Error
     243 * @return string|false|WP_Error
    244244 */
    245245function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
     
    254254 * @param int    $post_id
    255255 * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
    256  * @return string|bool|WP_Error
     256 * @return string|false|WP_Error
    257257 */
    258258function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
Note: See TracChangeset for help on using the changeset viewer.