WordPress.org

Make WordPress Core

Changeset 35055


Ignore:
Timestamp:
10/12/2015 04:07:25 PM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size parameter in get_image_send_to_editor() to clarify the required order of width and height values when passing an array.

Also adds the array type to the parameter documentation (already supported).

See #34257.

File:
1 edited

Legend:

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

    r34984 r35055  
    113113 * @param string  $url     image src url
    114114 * @param string  $rel     image rel attribute
    115  * @param string  $size    image size (thumbnail, medium, large, full or added  with add_image_size() )
     115 * @param string|array $size Optional. Image size. Accepts any valid image size, or an array of width
     116 *                           and height values in pixels (in that order).
    116117 * @return string the html to insert into editor
    117118 */
Note: See TracChangeset for help on using the changeset viewer.