From 8b26e5debc1ee42372228ae6cccd54379dff4f12 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 16:02:24 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@35053 git-svn-id: http://core.svn.wordpress.org/trunk@35018 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 6835359058..31e1309be2 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -455,11 +455,11 @@ function wp_constrain_dimensions( $current_width, $current_height, $max_width = * @param int $orig_h Original height in pixels. * @param int $dest_w New width in pixels. * @param int $dest_h New height in pixels. - * @param bool|array $crop Optional. Whether to crop image to specified height and width or resize. + * @param bool|array $crop Optional. Whether to crop image to specified width and height or resize. * An array can specify positioning of the crop area. Default false. * @return false|array False on failure. Returned array matches parameters for `imagecopyresampled()`. */ -function image_resize_dimensions($orig_w, $orig_h, $dest_w, $dest_h, $crop = false) { +function image_resize_dimensions( $orig_w, $orig_h, $dest_w, $dest_h, $crop = false ) { if ($orig_w <= 0 || $orig_h <= 0) return false; @@ -480,7 +480,7 @@ function image_resize_dimensions($orig_w, $orig_h, $dest_w, $dest_h, $crop = fal * @param int $orig_h Original height in pixels. * @param int $dest_w New width in pixels. * @param int $dest_h New height in pixels. - * @param bool|array $crop Whether to crop image to specified height and width or resize. + * @param bool|array $crop Whether to crop image to specified width and height or resize. * An array can specify positioning of the crop area. Default false. */ $output = apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 49258eef46..e86326b605 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35052'; +$wp_version = '4.4-alpha-35053'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.