Make WordPress Core

Changeset 35045


Ignore:
Timestamp:
10/12/2015 03:42:22 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size argument in gallery_shortcode to clarify the required order of width and height values when passing an array.

Also adds the array type to the argument documentation.

Props jaspermdegroot.
See #34257.

File:
1 edited

Legend:

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

    r35044 r35045  
    13891389 *                              Default 'dd', or 'figcaption' when the theme registers HTML5 gallery support.
    13901390 *     @type int    $columns    Number of columns of images to display. Default 3.
    1391  *     @type string $size       Size of the images to display. Default 'thumbnail'.
     1391 *     @type string|array $size Size of the images to display. Accepts any valid image size, or an array of width
     1392 *                              and height values in pixels (in that order). Default 'thumbnail'.
    13921393 *     @type string $ids        A comma-separated list of IDs of attachments to display. Default empty.
    13931394 *     @type string $include    A comma-separated list of IDs of attachments to include. Default empty.
Note: See TracChangeset for help on using the changeset viewer.