Make WordPress Core

Changeset 35592


Ignore:
Timestamp:
11/09/2015 11:33:06 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Fix some formatting in the hook doc for the wp_calculate_image_srcset filter and clarify the summary.

See #34612.

File:
1 edited

Legend:

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

    r35591 r35592  
    10711071
    10721072    /**
    1073      * Filter the output of 'wp_calculate_image_srcset()'.
     1073     * Filter an image's 'srcset' sources.
    10741074     *
    10751075     * @since 4.4.0
    10761076     *
    10771077     * @param array  $sources {
    1078      *     An array of sources to include in the 'srcset'.
     1078     *     One or more arrays of source data to include in the 'srcset'.
    10791079     *
    10801080     *     @type type array $width {
    1081      *          @type type string $url        The URL of an image source in the .
    1082      *          @type type string $descriptor The descriptor type used in the image candidate string, either 'w' or 'x'.
    1083      *          @type type int    $value      The source width, if paired with a 'w' descriptor or a pixel density value
    1084      *                                        if paired with an 'x' descriptor.
     1081     *          @type type string $url        The URL of an image source.
     1082     *          @type type string $descriptor The descriptor type used in the image candidate string,
     1083     *                                        either 'w' or 'x'.
     1084     *          @type type int    $value      The source width, if paired with a 'w' descriptor or a
     1085     *                                        pixel density value if paired with an 'x' descriptor.
    10851086     *     }
    10861087     * }
Note: See TracChangeset for help on using the changeset viewer.