WordPress.org

Make WordPress Core

Changeset 35077


Ignore:
Timestamp:
10/12/2015 05:08:39 PM (5 years ago)
Author:
DrewAPicture
Message:

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

See #34257. See [35037].

File:
1 edited

Legend:

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

    r35054 r35077  
    335335     * @since 2.6.0
    336336     *
    337      * @param string $class CSS class name or space-separated list of classes.
    338      * @param int    $id    Attachment ID.
    339      * @param string $align Part of the class name for aligning the image.
    340      * @param string $size  Size of image. Image size or array of width and height values (in that order).
    341      *                      Default 'medium'.
     337     * @param string       $class CSS class name or space-separated list of classes.
     338     * @param int          $id    Attachment ID.
     339     * @param string       $align Part of the class name for aligning the image.
     340     * @param string|array $size  Size of image. Image size or array of width and height values (in that order).
     341     *                            Default 'medium'.
    342342     */
    343343    $class = apply_filters( 'get_image_tag_class', $class, $id, $align, $size );
Note: See TracChangeset for help on using the changeset viewer.