WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months 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-includes/post.php

    r49926 r49927  
    14771477 *
    14781478 * @param string $post_type Post type to unregister.
    1479  * @return bool|WP_Error True on success, WP_Error on failure or if the post type doesn't exist.
     1479 * @return true|WP_Error True on success, WP_Error on failure or if the post type doesn't exist.
    14801480 */
    14811481function unregister_post_type( $post_type ) {
     
    50615061 *
    50625062 * @param int|WP_Post $post_id Post ID or object.
    5063  * @return bool|string[] Array of URLs already pinged for the given post, false if the post is not found.
     5063 * @return false|string[] Array of URLs already pinged for the given post, false if the post is not found.
    50645064 */
    50655065function get_pung( $post_id ) {
     
    61176117 * @param int   $attachment_id Attachment post ID.
    61186118 * @param array $data          Attachment meta data.
    6119  * @return int|bool False if $post is invalid.
     6119 * @return int|false False if $post is invalid.
    61206120 */
    61216121function wp_update_attachment_metadata( $attachment_id, $data ) {
Note: See TracChangeset for help on using the changeset viewer.