Make WordPress Core

Changeset 35060


Ignore:
Timestamp:
10/12/2015 04:21:57 PM (10 years ago)
Author:
DrewAPicture
Message:

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

See #34257. See #28512.

File:
1 edited

Legend:

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

    r35023 r35060  
    14081408         *
    14091409         * @param string|array $size         Post thumbnail image size to display in the meta box. Accepts any valid
    1410          *                                   image size, or an array of height and width values in pixels. If the
    1411          *                                   'post-thumbnail' size is set, default is 'post-thumbnail'. Otherwise,
     1410         *                                   image size, or an array of width and height values in pixels (in that order).
     1411         *                                   If the 'post-thumbnail' size is set, default is 'post-thumbnail'. Otherwise,
    14121412         *                                   default is an array with 266 as both the height and width values.
    14131413         * @param int          $thumbnail_id Post thumbnail attachment ID.
Note: See TracChangeset for help on using the changeset viewer.