Skip to content

Commit 5d466a4

Browse files
Docs: Correct punctuation in some instances of the $crop parameter description.
Follow-up to [56416]. See #58833. git-svn-id: https://develop.svn.wordpress.org/trunk@56418 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d1f72a6 commit 5d466a4

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/wp-includes/class-wp-image-editor-gd.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ protected function update_size( $width = false, $height = false ) {
165165
*
166166
* @param int|null $max_w Image width.
167167
* @param int|null $max_h Image height.
168-
* @param bool|array $crop {
169-
* Optional. Image cropping behavior. If false, the image will be scaled (default),
168+
* @param bool|array $crop {
169+
* Optional. Image cropping behavior. If false, the image will be scaled (default).
170170
* If true, image will be cropped to the specified dimensions using center positions.
171171
* If an array, the image will be cropped using the array to specify the crop location:
172172
*
@@ -197,8 +197,8 @@ public function resize( $max_w, $max_h, $crop = false ) {
197197
/**
198198
* @param int $max_w
199199
* @param int $max_h
200-
* @param bool|array $crop {
201-
* Optional. Image cropping behavior. If false, the image will be scaled (default),
200+
* @param bool|array $crop {
201+
* Optional. Image cropping behavior. If false, the image will be scaled (default).
202202
* If true, image will be cropped to the specified dimensions using center positions.
203203
* If an array, the image will be cropped using the array to specify the crop location:
204204
*

src/wp-includes/class-wp-image-editor-imagick.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ public static function set_imagick_time_limit() {
320320
*
321321
* @param int|null $max_w Image width.
322322
* @param int|null $max_h Image height.
323-
* @param bool|array $crop {
324-
* Optional. Image cropping behavior. If false, the image will be scaled (default),
323+
* @param bool|array $crop {
324+
* Optional. Image cropping behavior. If false, the image will be scaled (default).
325325
* If true, image will be cropped to the specified dimensions using center positions.
326326
* If an array, the image will be cropped using the array to specify the crop location:
327327
*

src/wp-includes/class-wp-image-editor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ abstract public function save( $destfilename = null, $mime_type = null );
106106
*
107107
* @param int|null $max_w Image width.
108108
* @param int|null $max_h Image height.
109-
* @param bool|array $crop {
110-
* Optional. Image cropping behavior. If false, the image will be scaled (default),
109+
* @param bool|array $crop {
110+
* Optional. Image cropping behavior. If false, the image will be scaled (default).
111111
* If true, image will be cropped to the specified dimensions using center positions.
112112
* If an array, the image will be cropped using the array to specify the crop location:
113113
*

src/wp-includes/media.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function remove_image_size( $name ) {
346346
* @param int $width Image width in pixels.
347347
* @param int $height Image height in pixels.
348348
* @param bool|array $crop {
349-
* Optional. Image cropping behavior. If false, the image will be scaled (default),
349+
* Optional. Image cropping behavior. If false, the image will be scaled (default).
350350
* If true, image will be cropped to the specified dimensions using center positions.
351351
* If an array, the image will be cropped using the array to specify the crop location:
352352
*
@@ -680,7 +680,7 @@ function image_resize_dimensions( $orig_w, $orig_h, $dest_w, $dest_h, $crop = fa
680680
* @param int $width Image width.
681681
* @param int $height Image height.
682682
* @param bool|array $crop {
683-
* Optional. Image cropping behavior. If false, the image will be scaled (default),
683+
* Optional. Image cropping behavior. If false, the image will be scaled (default).
684684
* If true, image will be cropped to the specified dimensions using center positions.
685685
* If an array, the image will be cropped using the array to specify the crop location:
686686
*

0 commit comments

Comments
 (0)