Make WordPress Core


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

Docs: Adjust the order of 'width' and 'height' (for consistency) for the $crop parameter documentation in image_resize_dimensions().

Also similarly adjusts the $crop parameter description in the corresponding image_resize_dimensions hook doc.

Props jaspermdegroot.
See #34257.

File:
1 edited

Legend:

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

    r35052 r35053  
    456456 * @param int        $dest_w New width in pixels.
    457457 * @param int        $dest_h New height in pixels.
    458  * @param bool|array $crop   Optional. Whether to crop image to specified height and width or resize.
     458 * @param bool|array $crop   Optional. Whether to crop image to specified width and height or resize.
    459459 *                           An array can specify positioning of the crop area. Default false.
    460460 * @return false|array False on failure. Returned array matches parameters for `imagecopyresampled()`.
    461461 */
    462 function image_resize_dimensions($orig_w, $orig_h, $dest_w, $dest_h, $crop = false) {
     462function image_resize_dimensions( $orig_w, $orig_h, $dest_w, $dest_h, $crop = false ) {
    463463
    464464    if ($orig_w <= 0 || $orig_h <= 0)
     
    481481     * @param int        $dest_w New width in pixels.
    482482     * @param int        $dest_h New height in pixels.
    483      * @param bool|array $crop   Whether to crop image to specified height and width or resize.
     483     * @param bool|array $crop   Whether to crop image to specified width and height or resize.
    484484     *                           An array can specify positioning of the crop area. Default false.
    485485     */
Note: See TracChangeset for help on using the changeset viewer.