Make WordPress Core

Changeset 35078


Ignore:
Timestamp:
10/12/2015 05:10:59 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: The $size parameter for the get_image_tag hook also accepts an array.

See #34257. See [35038].

File:
1 edited

Legend:

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

    r35077 r35078  
    350350     * @since 2.6.0
    351351     *
    352      * @param string $html  HTML content for the image.
    353      * @param int    $id    Attachment ID.
    354      * @param string $alt   Alternate text.
    355      * @param string $title Attachment title.
    356      * @param string $align Part of the class name for aligning the image.
    357      * @param string $size  Size of image. Image size or array of width and height values (in that order).
    358      *                      Default 'medium'.
     352     * @param string       $html  HTML content for the image.
     353     * @param int          $id    Attachment ID.
     354     * @param string       $alt   Alternate text.
     355     * @param string       $title Attachment title.
     356     * @param string       $align Part of the class name for aligning the image.
     357     * @param string|array $size  Size of image. Image size or array of width and height values (in that order).
     358     *                            Default 'medium'.
    359359     */
    360360    return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );
Note: See TracChangeset for help on using the changeset viewer.