Make WordPress Core

Changeset 35058


Ignore:
Timestamp:
10/12/2015 04:16:35 PM (9 years ago)
Author:
DrewAPicture
Message:

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

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

    r35056 r35058  
    142142     * @param string $align   The image alignment.
    143143     * @param string $url     The image source URL.
    144      * @param string $size    The image size.
     144     * @param string|array $size Size of image. Image size or array of width and height values
     145 *                               (in that order).
    145146     * @param string $alt     The image alternative, or alt, text.
    146147     */
Note: See TracChangeset for help on using the changeset viewer.