Skip to content

Commit 2e5e213

Browse files
Docs: Add missing commas in a few DocBlocks for various media functions.
Follow-up to [56416]. Props truptikanzariya. Fixes #62433. git-svn-id: https://develop.svn.wordpress.org/trunk@59406 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e9dfa8c commit 2e5e213

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ protected function update_size( $width = false, $height = false ) {
182182
* If true, image will be cropped to the specified dimensions using center positions.
183183
* If an array, the image will be cropped using the array to specify the crop location:
184184
*
185-
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
185+
* @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
186186
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
187187
* }
188188
* @return true|WP_Error
@@ -214,7 +214,7 @@ public function resize( $max_w, $max_h, $crop = false ) {
214214
* If true, image will be cropped to the specified dimensions using center positions.
215215
* If an array, the image will be cropped using the array to specify the crop location:
216216
*
217-
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
217+
* @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
218218
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
219219
* }
220220
* @return resource|GdImage|WP_Error

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public static function set_imagick_time_limit() {
346346
* If true, image will be cropped to the specified dimensions using center positions.
347347
* If an array, the image will be cropped using the array to specify the crop location:
348348
*
349-
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
349+
* @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
350350
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
351351
* }
352352
* @return true|WP_Error

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ abstract public function save( $destfilename = null, $mime_type = null );
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
*
114-
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
114+
* @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
115115
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
116116
* }
117117
* @return true|WP_Error

src/wp-includes/media.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function image_downsize( $id, $size = 'medium' ) {
288288
* If true, image will be cropped to the specified dimensions using center positions.
289289
* If an array, the image will be cropped using the array to specify the crop location:
290290
*
291-
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
291+
* @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
292292
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
293293
* }
294294
*/
@@ -350,7 +350,7 @@ function remove_image_size( $name ) {
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
*
353-
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
353+
* @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
354354
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
355355
* }
356356
*/
@@ -530,7 +530,7 @@ function wp_constrain_dimensions( $current_width, $current_height, $max_width =
530530
* If true, image will be cropped to the specified dimensions using center positions.
531531
* If an array, the image will be cropped using the array to specify the crop location:
532532
*
533-
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
533+
* @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
534534
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
535535
* }
536536
* @return array|false Returned array matches parameters for `imagecopyresampled()`. False on failure.
@@ -684,7 +684,7 @@ function image_resize_dimensions( $orig_w, $orig_h, $dest_w, $dest_h, $crop = fa
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
*
687-
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
687+
* @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
688688
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
689689
* }
690690
* @return array|false Metadata array on success. False if no image was created.

0 commit comments

Comments
 (0)