Commit 7e5447d076 for wordpress.org
commit 7e5447d076a455aa12955b2731e6b569157cf969
Author: afercia <afercia@git.wordpress.org>
Date: Mon Sep 7 17:26:50 2026 +0000
General: Minor JSDoc fixes after r63516.
Part of the effort to improve JS inline documentation for 7.2.
Amends [63516]
Developed in https://github.com/WordPress/wordpress-develop/pull/13426
Props westonruter, afercia.
See #66033.
Built from https://develop.svn.wordpress.org/trunk@63521
git-svn-id: http://core.svn.wordpress.org/trunk@62697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/js/media-audiovideo.js b/wp-includes/js/media-audiovideo.js
index f5563b5ff1..5370d09603 100644
--- a/wp-includes/js/media-audiovideo.js
+++ b/wp-includes/js/media-audiovideo.js
@@ -575,7 +575,7 @@ MediaDetails = AttachmentDisplay.extend(/** @lends wp.media.view.MediaDetails.pr
},
/**
- * Handle events for the media details view.
+ * Handles events for the media details view.
*
* @return {Object} The events object.
*/
diff --git a/wp-includes/js/media-models.js b/wp-includes/js/media-models.js
index e390e82b7c..e3f3fdba54 100644
--- a/wp-includes/js/media-models.js
+++ b/wp-includes/js/media-models.js
@@ -119,7 +119,7 @@ Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototyp
return resp;
},
/**
- * Save attachment details using the `save-attachment-compat` action.
+ * Saves attachment details using the `save-attachment-compat` action.
*
* @param {Object} data The properties to be saved.
* @param {Object} options Sync options. e.g. patch, wait, success, error.
@@ -649,7 +649,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
}
},
/**
- * If this collection is sorted by `menuOrder`, recalculates and saves the menu order to the database.
+ * Recalculates and saves the menu order to the database if this collection is sorted by `menuOrder`.
*
* @return {undefined|Promise} Returns a promise if the menu order is saved, otherwise undefined.
*/
diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js
index 6ddc82465a..356303a4c3 100644
--- a/wp-includes/js/media-views.js
+++ b/wp-includes/js/media-views.js
@@ -10795,7 +10795,7 @@ module.exports = UploaderWindow;
*/
var View = wp.Backbone.View.extend(/** @lends wp.media.View.prototype */{
/**
- * Constructor for the media view.
+ * Constructs the media view.
*
* @param {Object} [options] Options for the view.
*/
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 2785f4bc23..367cf1d1fd 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-alpha-63520';
+$wp_version = '7.2-alpha-63521';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.