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/media.php

    r49808 r49927  
    12021202 * @param array        $image_meta    Optional. The image meta data as returned by 'wp_get_attachment_metadata()'.
    12031203 *                                    Default null.
    1204  * @return string|bool A 'srcset' value string or false.
     1204 * @return string|false A 'srcset' value string or false.
    12051205 */
    12061206function wp_get_attachment_image_srcset( $attachment_id, $size = 'medium', $image_meta = null ) {
     
    14431443 * @param array        $image_meta    Optional. The image meta data as returned by 'wp_get_attachment_metadata()'.
    14441444 *                                    Default null.
    1445  * @return string|bool A valid source size value for use in a 'sizes' attribute or false.
     1445 * @return string|false A valid source size value for use in a 'sizes' attribute or false.
    14461446 */
    14471447function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $image_meta = null ) {
Note: See TracChangeset for help on using the changeset viewer.