WordPress.org

Make WordPress Core

Changeset 35037


Ignore:
Timestamp:
10/12/2015 03:25:41 PM (5 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size parameter in the get_image_tag_class hook doc to clarify the required order of width and height values when an array is passed.

See #34257.

File:
1 edited

Legend:

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

    r35036 r35037  
    338338     * @param int    $id    Attachment ID.
    339339     * @param string $align Part of the class name for aligning the image.
    340      * @param string $size  Optional. Default is 'medium'.
     340     * @param string $size  Size of image. Image size or array of width and height values (in that order).
     341     *                      Default 'medium'.
    341342     */
    342343    $class = apply_filters( 'get_image_tag_class', $class, $id, $align, $size );
Note: See TracChangeset for help on using the changeset viewer.