Make WordPress Core


Ignore:
Timestamp:
10/12/2015 03:19:13 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size parameter in the image_downside 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

    r35034 r35035  
    169169     * @param bool         $downsize Whether to short-circuit the image downsize. Default false.
    170170     * @param int          $id       Attachment ID for image.
    171      * @param array|string $size     Size of image, either array or string. Default 'medium'.
     171     * @param array|string $size     Size of image. Image size or array of width and height values (in that order).
     172     *                               Default 'medium'.
    172173     */
    173174    if ( $out = apply_filters( 'image_downsize', false, $id, $size ) ) {
Note: See TracChangeset for help on using the changeset viewer.