From cdc9d4766fd1544201f95320d61fd8a02a0cee1f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 20 May 2023 10:19:23 +0000 Subject: [PATCH] Docs: Fix a few more typos in DocBlocks. Follow-up to [39493], [41726], [55823], [55824], [55827]. See #57840. Built from https://develop.svn.wordpress.org/trunk@55843 git-svn-id: http://core.svn.wordpress.org/trunk@55355 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/image-edit.js | 2 +- wp-includes/js/customize-base.js | 5 +++-- wp-includes/media.php | 5 ++--- wp-includes/version.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/js/image-edit.js b/wp-admin/js/image-edit.js index 0d4f7b015a..12a4c29fe0 100644 --- a/wp-admin/js/image-edit.js +++ b/wp-admin/js/image-edit.js @@ -435,7 +435,7 @@ * * @return {boolean|void} Executes a post request that refreshes the page * when the action is performed. - * Returns false if a invalid action is given, + * Returns false if an invalid action is given, * or when the action cannot be performed. */ action : function(postid, nonce, action) { diff --git a/wp-includes/js/customize-base.js b/wp-includes/js/customize-base.js index 24a5bf6669..4afaa94557 100644 --- a/wp-includes/js/customize-base.js +++ b/wp-includes/js/customize-base.js @@ -391,8 +391,9 @@ window.wp = window.wp || {}; /** * Add an item to the collection. * - * @param {string|wp.customize.Class} item - The item instance to add, or the ID for the instance to add. When an ID string is supplied, then itemObject must be provided. - * @param {wp.customize.Class} [itemObject] - The item instance when the first argument is a ID string. + * @param {string|wp.customize.Class} item - The item instance to add, or the ID for the instance to add. + * When an ID string is supplied, then itemObject must be provided. + * @param {wp.customize.Class} [itemObject] - The item instance when the first argument is an ID string. * @return {wp.customize.Class} The new item's instance, or an existing instance if already added. */ add: function( item, itemObject ) { diff --git a/wp-includes/media.php b/wp-includes/media.php index e0f8680b51..3ea2863414 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -3804,14 +3804,13 @@ function get_taxonomies_for_attachments( $output = 'names' ) { * @since 5.6.0 * * @param resource|GdImage|false $image A value to check the type for. - * @return bool True if $image is either a GD image resource or GdImage instance, + * @return bool True if `$image` is either a GD image resource or a GdImage instance, * false otherwise. */ function is_gd_image( $image ) { if ( $image instanceof GdImage || is_resource( $image ) && 'gd' === get_resource_type( $image ) ) { - return true; } @@ -3819,7 +3818,7 @@ function is_gd_image( $image ) { } /** - * Creates new GD image resource with transparency support. + * Creates a new GD image resource with transparency support. * * @todo Deprecate if possible. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 299d47f081..48a9c7b57a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55828'; +$wp_version = '6.3-alpha-55843'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.