Changeset 63766
- Timestamp:
- 09/21/2026 06:34:17 AM (8 weeks ago)
- Location:
- trunk
- Files:
-
- 20 edited
-
.eslintrc-jsdoc.js (modified) (1 diff)
-
src/js/_enqueues/admin/comment.js (modified) (6 diffs)
-
src/js/_enqueues/admin/inline-edit-tax.js (modified) (5 diffs)
-
src/js/_enqueues/admin/user-profile.js (modified) (1 diff)
-
src/js/_enqueues/lib/lists.js (modified) (1 diff)
-
src/js/_enqueues/wp/api.js (modified) (6 diffs)
-
src/js/_enqueues/wp/media/editor.js (modified) (13 diffs)
-
src/js/_enqueues/wp/theme.js (modified) (1 diff)
-
src/js/_enqueues/wp/widgets/media.js (modified) (1 diff)
-
src/js/media/models/attachment.js (modified) (1 diff)
-
src/js/media/models/attachments.js (modified) (4 diffs)
-
src/js/media/models/query.js (modified) (1 diff)
-
src/js/media/models/selection.js (modified) (1 diff)
-
src/js/media/views/attachment/details.js (modified) (1 diff)
-
src/js/media/views/attachments.js (modified) (4 diffs)
-
src/js/media/views/frame.js (modified) (1 diff)
-
src/js/media/views/frame/manage.js (modified) (1 diff)
-
src/js/media/views/frame/select.js (modified) (1 diff)
-
src/js/media/views/media-details.js (modified) (2 diffs)
-
src/js/media/views/media-frame.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.eslintrc-jsdoc.js
r63600 r63766 76 76 'jsdoc/require-returns-description': 'error', 77 77 'jsdoc/require-returns-type': 'error', 78 'jsdoc/valid-types': 'error', 78 79 }, 79 80 }, -
trunk/src/js/_enqueues/admin/comment.js
r63406 r63766 25 25 * Adds event that opens the time stamp form if the form is hidden. 26 26 * 27 * @listens $edittimestamp:click28 *29 27 * @param {Event} event The event object. 30 28 * @return {void} … … 43 41 /** 44 42 * Resets the time stamp values when the cancel button is clicked. 45 *46 * @listens .cancel-timestamp:click47 43 * 48 44 * @param {Event} event The event object. … … 65 61 /** 66 62 * Sets the time stamp values when the ok button is clicked. 67 *68 * @listens .save-timestamp:click69 63 * 70 64 * @param {Event} event The event object. … … 111 105 * @since 7.1.0 112 106 * 113 * @listens $editcommentparent:click114 *115 107 * @param {Event} event The event object. 116 108 * @return {void} … … 132 124 * @since 7.1.0 133 125 * 134 * @listens .cancel-comment-parent:click135 *136 126 * @param {Event} event The event object. 137 127 * @return {void} … … 150 140 * 151 141 * @since 7.1.0 152 *153 * @listens .save-comment-parent:click154 142 * 155 143 * @param {Event} event The event object. -
trunk/src/js/_enqueues/admin/inline-edit-tax.js
r63600 r63766 30 30 * @since 2.7.0 31 31 * 32 * @this inlineEditTax32 * @this {inlineEditTax} 33 33 * @memberof inlineEditTax 34 34 * @return {void} … … 94 94 * @since 2.7.0 95 95 * 96 * @this inlineEditTax96 * @this {inlineEditTax} 97 97 * @memberof inlineEditTax 98 98 * … … 112 112 * @since 2.7.0 113 113 * 114 * @this inlineEditTax114 * @this {inlineEditTax} 115 115 * @memberof inlineEditTax 116 116 * … … 159 159 * @since 2.7.0 160 160 * 161 * @this inlineEditTax161 * @this {inlineEditTax} 162 162 * @memberof inlineEditTax 163 163 * … … 256 256 * @since 2.7.0 257 257 * 258 * @this inlineEditTax258 * @this {inlineEditTax} 259 259 * @memberof inlineEditTax 260 260 * @return {void} -
trunk/src/js/_enqueues/admin/user-profile.js
r63556 r63766 187 187 * Helper function to insert an inline notice of success or failure. 188 188 * 189 * @param {jQuery Object}$this The button element: the message will be inserted190 * above this button191 * @param {boolean} success Whether the message is a success message.192 * @param {string} message The message to insert.189 * @param {jQuery} $this The button element: the message will be inserted 190 * above this button 191 * @param {boolean} success Whether the message is a success message. 192 * @param {string} message The message to insert. 193 193 */ 194 194 function addInlineNotice( $this, success, message ) { -
trunk/src/js/_enqueues/lib/lists.js
r63600 r63766 813 813 * Initializes wpList object. 814 814 * 815 * @param {Object} settings The settings for the wpList instance.816 * @param {string} settings.url URL for ajax calls. Default: ajaxurl.817 * @param {string} settings.type The HTTP method to use for Ajax requests. Default: 'POST'.818 * @param {string} settings.response ID of the element the parsed ajax response will be stored in.819 * Default: 'ajax-response'.815 * @param {Object} settings The settings for the wpList instance. 816 * @param {string} settings.url URL for ajax calls. Default: ajaxurl. 817 * @param {string} settings.type The HTTP method to use for Ajax requests. Default: 'POST'. 818 * @param {string} settings.response ID of the element the parsed ajax response will be stored in. 819 * Default: 'ajax-response'. 820 820 * 821 * @param {string} settings.what Default: ''.822 * @param {string} settings.alt CSS class name for alternate styling. Default: 'alternate'.823 * @param {number} settings.altOffset Offset to start alternate styling from. Default: 0.824 * @param {string} settings.addColor Hex code or 'none' to disable animation. Default: '#ffff33'.825 * @param {string} settings.delColor Hex code or 'none' to disable animation. Default: '#faafaa'.826 * @param {string} settings.dimAddColor Hex code or 'none' to disable animation. Default: '#ffff33'.827 * @param {string} settings.dimDelColor Hex code or 'none' to disable animation. Default: '#ff3333'.821 * @param {string} settings.what Default: ''. 822 * @param {string} settings.alt CSS class name for alternate styling. Default: 'alternate'. 823 * @param {number} settings.altOffset Offset to start alternate styling from. Default: 0. 824 * @param {string} settings.addColor Hex code or 'none' to disable animation. Default: '#ffff33'. 825 * @param {string} settings.delColor Hex code or 'none' to disable animation. Default: '#faafaa'. 826 * @param {string} settings.dimAddColor Hex code or 'none' to disable animation. Default: '#ffff33'. 827 * @param {string} settings.dimDelColor Hex code or 'none' to disable animation. Default: '#ff3333'. 828 828 * 829 * @param { wpList~confirm}settings.confirm Callback that's run before a request is made. Default: null.830 * @param { wpList~addBefore} settings.addBefore Callback that's run before an item gets added to the list.831 * Default: null.832 * @param { wpList~addAfter}settings.addAfter Callback that's run after an item got added to the list.833 * Default: null.834 * @param { wpList~delBefore} settings.delBefore Callback that's run before an item gets deleted from the list.835 * Default: null.836 * @param { wpList~delAfter}settings.delAfter Callback that's run after an item got deleted from the list.837 * Default: null.838 * @param { wpList~dimBefore} settings.dimBefore Callback that's run before an item gets dim'd. Default: null.839 * @param { wpList~dimAfter}settings.dimAfter Callback that's run after an item got dim'd. Default: null.829 * @param {Function} settings.confirm Callback that's run before a request is made. Default: null. 830 * @param {Function} settings.addBefore Callback that's run before an item gets added to the list. 831 * Default: null. 832 * @param {Function} settings.addAfter Callback that's run after an item got added to the list. 833 * Default: null. 834 * @param {Function} settings.delBefore Callback that's run before an item gets deleted from the list. 835 * Default: null. 836 * @param {Function} settings.delAfter Callback that's run after an item got deleted from the list. 837 * Default: null. 838 * @param {Function} settings.dimBefore Callback that's run before an item gets dim'd. Default: null. 839 * @param {Function} settings.dimAfter Callback that's run after an item got dim'd. Default: null. 840 840 * @return {$.fn} wpList API function. 841 841 */ -
trunk/src/js/_enqueues/wp/api.js
r63600 r63766 61 61 * 62 62 * @param {string} route The API route. 63 * @return {Backbone Model} The model found at given route. Undefined if not found.63 * @return {Backbone.Model|undefined} The model found at given route. Undefined if not found. 64 64 */ 65 65 wp.api.getModelByRoute = function( route ) { … … 73 73 * 74 74 * @param {string} route The API route. 75 * @return {Backbone Model} The collection found at given route. Undefined if not found.75 * @return {Backbone.Collection|undefined} The collection found at given route. Undefined if not found. 76 76 */ 77 77 wp.api.getCollectionByRoute = function( route ) { … … 312 312 * Add mixins and helpers to models depending on their defaults. 313 313 * 314 * @param {Backbone Model} model The model to attach helpers and mixins to.314 * @param {Backbone.Model} model The model to attach helpers and mixins to. 315 315 * @param {string} modelClassName The classname of the constructed model. 316 316 * @param {Object} loadingObjects An object containing the models and collections we are building. … … 869 869 * Set nonce header before every Backbone sync. 870 870 * 871 * @param {string} method The CRUD method ("create", "read", "update", or "delete") to be performed.872 * @param {Backbone.Model} model The model to be synced.873 * @param { {beforeSend}, *}options Additional options for the sync.871 * @param {string} method The CRUD method ("create", "read", "update", or "delete") to be performed. 872 * @param {Backbone.Model} model The model to be synced. 873 * @param {Object} options Additional options for the sync. 874 874 * @return {*}. 875 875 */ … … 1034 1034 * @param {string} method The CRUD method ("create", "read", "update", or "delete") to be performed. 1035 1035 * @param {Backbone.Model} model The model to be synced. 1036 * @param { {success}, *}options Additional options for the sync.1036 * @param {Object} options Additional options for the sync. 1037 1037 * @return {*}. 1038 1038 */ … … 1109 1109 * Fetches the next page of objects if a new page exists. 1110 1110 * 1111 * @param {data: {page}} options An object containing the page number to fetch. If not provided, the next page will be fetched. 1112 * @return {*}. 1111 * @param {Object} [options] An object containing the page number to fetch. If not provided, the next page will be fetched. 1112 * @param {number} [options.data.page] The page number to fetch. 1113 * @return {JQuery.Promise} A promise that resolves when the fetch operation completes. 1113 1114 */ 1114 1115 more: function( options ) { -
trunk/src/js/_enqueues/wp/media/editor.js
r63600 r63766 491 491 * shortcode markup matching the passed tag name, 492 492 * 493 * @this wp.media.{prop}493 * @this {wp.media.view.MediaFrame.Select} 494 494 * 495 495 * @return {void|wp.media.view.MediaFrame.Select} A media workflow. … … 650 650 * The Featured Image workflow 651 651 * 652 * @this wp.media.featuredImage652 * @this {wp.media.featuredImage} 653 653 * 654 654 * @return {wp.media.view.MediaFrame.Select} A media workflow. … … 667 667 this._frame.on( 'toolbar:create:featured-image', function( toolbar ) { 668 668 /** 669 * @this wp.media.view.MediaFrame.Select669 * @this {wp.media.view.MediaFrame.Select} 670 670 */ 671 671 this.createSelectToolbar( toolbar, { … … 692 692 * the 'Set Featured Image' button is clicked in the media modal. 693 693 * 694 * @this wp.media.controller.FeaturedImage694 * @this {wp.media.controller.FeaturedImage} 695 695 */ 696 696 select: function() { … … 790 790 * @param {Object} [options={}] The options for the media workflow. 791 791 * 792 * @this wp.media.editor792 * @this {wp.media.editor} 793 793 * 794 794 * @return {wp.media.view.MediaFrame.Select} A media workflow. … … 821 821 var display = state.display( attachment ).toJSON(); 822 822 /** 823 * @this wp.media.editor823 * @this {wp.media.editor} 824 824 */ 825 825 return this.send.attachment( display, attachment.toJSON() ); … … 831 831 workflow.state('gallery-edit').on( 'update', function( selection ) { 832 832 /** 833 * @this wp.media.editor833 * @this {wp.media.editor} 834 834 */ 835 835 this.insert( wp.media.gallery.shortcode( selection ).string() ); … … 838 838 workflow.state('playlist-edit').on( 'update', function( selection ) { 839 839 /** 840 * @this wp.media.editor840 * @this {wp.media.editor} 841 841 */ 842 842 this.insert( wp.media.playlist.shortcode( selection ).string() ); … … 845 845 workflow.state('video-playlist-edit').on( 'update', function( selection ) { 846 846 /** 847 * @this wp.media.editor847 * @this {wp.media.editor} 848 848 */ 849 849 this.insert( wp.media.playlist.shortcode( selection ).string() ); … … 852 852 workflow.state('embed').on( 'select', function() { 853 853 /** 854 * @this wp.media.editor854 * @this {wp.media.editor} 855 855 */ 856 856 var state = workflow.state(), … … 921 921 * @param {string} id A slug used to identify the workflow. 922 922 * 923 * @this wp.media.editor923 * @this {wp.media.editor} 924 924 * 925 925 * @return {wp.media.view.MediaFrame} A media workflow. … … 934 934 * @param {string} id A slug used to identify the workflow. 935 935 * 936 * @this wp.media.editor936 * @this {wp.media.editor} 937 937 */ 938 938 remove: function( id ) { … … 1021 1021 * @param {Object} [options={}] The options for the media workflow. 1022 1022 * 1023 * @this wp.media.editor1023 * @this {wp.media.editor} 1024 1024 * 1025 1025 * @return {wp.media.view.MediaFrame} A media workflow. -
trunk/src/js/_enqueues/wp/theme.js
r63658 r63766 276 276 */ 277 277 query: function( request ) { 278 /**279 * @static280 * @type Array281 */282 278 var queries = this.queries, 283 279 self = this, -
trunk/src/js/_enqueues/wp/widgets/media.js
r63600 r63766 376 376 * @ignore 377 377 * 378 * @fires wp.media.controller.State#insert ()378 * @fires wp.media.controller.State#insert 379 379 * @return {void} 380 380 */ -
trunk/src/js/media/models/attachment.js
r63600 r63766 119 119 * @param {Object} options Sync options. e.g. patch, wait, success, error. 120 120 * 121 * @this Backbone.Model121 * @this {Backbone.Model} 122 122 * 123 123 * @return {jQuery.Promise} A jQuery Promise that is resolved or rejected based on the success of the sync operation. -
trunk/src/js/media/models/attachments.js
r63600 r63766 545 545 * @param {wp.media.model.Attachment} attachment The attachment to filter based on the search query. 546 546 * 547 * @this wp.media.model.Attachments547 * @this {wp.media.model.Attachments} 548 548 * 549 549 * @return {boolean} True if the attachment matches the search filter, false otherwise. … … 565 565 * @param {wp.media.model.Attachment} attachment The attachment to filter based on its type. 566 566 * 567 * @this wp.media.model.Attachments567 * @this {wp.media.model.Attachments} 568 568 * 569 569 * @return {boolean} True if the attachment matches the type filter, false otherwise. … … 594 594 * @param {wp.media.model.Attachment} attachment The attachment to filter based on its uploadedTo property. 595 595 * 596 * @this wp.media.model.Attachments596 * @this {wp.media.model.Attachments} 597 597 * 598 598 * @return {boolean} True if the attachment matches the uploadedTo filter, false otherwise. … … 612 612 * @param {wp.media.model.Attachment} attachment The attachment to filter based on its status property. 613 613 * 614 * @this wp.media.model.Attachments614 * @this {wp.media.model.Attachments} 615 615 * 616 616 * @return {boolean} True if the attachment matches the status filter, false otherwise. -
trunk/src/js/media/models/query.js
r63600 r63766 232 232 */ 233 233 get: (function(){ 234 /**235 * @static236 * @type Array237 */238 234 var queries = []; 239 235 -
trunk/src/js/media/models/selection.js
r63598 r63766 53 53 * Fired when toggling (clicking on) an attachment in the modal. 54 54 * 55 * Fires `selection:single` and `selection:unsingle` events on the model and collection. 56 * 55 57 * @param {undefined|boolean|wp.media.model.Attachment} model The model to set as the single selection, or a boolean to clear it. 56 *57 * @fires wp.media.model.Selection#selection:single58 * @fires wp.media.model.Selection#selection:unsingle59 *60 58 * @return {Backbone.Model} The single model in the selection, or the last model as a fallback. 61 59 */ -
trunk/src/js/media/views/attachment/details.js
r63409 r63766 247 247 * This event can be used to make sure to move the focus correctly. 248 248 * 249 * Fires `attachment:details:shift-tab` and `attachment:keydown:arrow` events on the controller. 250 * 249 251 * @since 4.0.0 250 *251 * @fires wp.media.controller.MediaLibrary#attachment:details:shift-tab252 * @fires wp.media.controller.MediaLibrary#attachment:keydown:arrow253 252 * 254 253 * @param {KeyboardEvent} event A keyboard event. -
trunk/src/js/media/views/attachments.js
r63612 r63766 19 19 * adding or removing attachments or resetting the entire collection. 20 20 * 21 * Listens for `collection:add`, `collection:remove`, `collection:reset`, 22 * `controller:library:selection:add`, `scrollElement:scroll`, `this:ready`, 23 * and `controller:open` events. 24 * 21 25 * @since 3.5.0 22 26 * … … 25 29 * 26 30 * @augments wp.media.View 27 *28 * @listens collection:add29 * @listens collection:remove30 * @listens collection:reset31 * @listens controller:library:selection:add32 * @listens scrollElement:scroll33 * @listens this:ready34 * @listens controller:open35 31 */ 36 32 initialize: function() { … … 122 118 * handlers to prevent duplicate listeners. 123 119 * 120 * Listens for the `window:resize` event. 121 * 124 122 * @since 4.0.0 125 *126 * @listens window:resize127 123 * 128 124 * @return {void} … … 270 266 * in the options. 271 267 * 272 * @since 3.5.0273 * 274 * @ fires collection:reset268 * Fires `collection:reset`. 269 * 270 * @since 3.5.0 275 271 * 276 272 * @return {void} -
trunk/src/js/media/views/frame.js
r63598 r63766 145 145 this.activeModes.remove( this.activeModes.where( { id: mode } ) ); 146 146 this.$el.removeClass( 'mode-' + mode ); 147 /** 148 * Frame mode deactivation event. 149 * 150 * @event wp.media.view.Frame#{mode}:deactivate 151 */ 147 148 // Fires a `#{mode}:deactivate` event on the frame. 152 149 this.trigger( mode + ':deactivate' ); 153 150 -
trunk/src/js/media/views/frame/manage.js
r63516 r63766 252 252 * @param {Object} contentRegion Basic object with a `view` property, which 253 253 * should be set with the proper region view. 254 * @this wp.media.controller.Region254 * @this {wp.media.controller.Region} 255 255 */ 256 256 browseContent: function( contentRegion ) { -
trunk/src/js/media/views/frame/select.js
r63598 r63766 170 170 * @param {Object} toolbar The toolbar object for the `select` mode. 171 171 * @param {Object} [options={}] The options for creating the select toolbar view. 172 * @this wp.media.controller.Region172 * @this {wp.media.controller.Region} 173 173 */ 174 174 createSelectToolbar: function( toolbar, options ) { -
trunk/src/js/media/views/media-details.js
r63598 r63766 60 60 * Removes a setting's UI when the model unsets it 61 61 * 62 * @fires wp.media.view.MediaDetails#media:setting:remove62 * Fires `wp.media.view.MediaDetails#media:setting:remove` when a setting is removed. 63 63 * 64 64 * @param {JQuery.Event} e The jQuery event object. … … 79 79 * Sets the tracks for the media details view. 80 80 * 81 * @fires wp.media.view.MediaDetails#media:setting:remove81 * Fires `wp.media.view.MediaDetails#media:setting:remove` when the tracks are updated. 82 82 */ 83 83 setTracks : function() { -
trunk/src/js/media/views/media-frame.js
r63612 r63766 162 162 * 163 163 * @param {Object} title The title object for creating the title view. 164 * @this wp.media.controller.Region164 * @this {wp.media.controller.Region} 165 165 */ 166 166 createTitle: function( title ) { … … 176 176 * 177 177 * @param {Object} menu The menu object for creating the menu view. 178 * @this wp.media.controller.Region178 * @this {wp.media.controller.Region} 179 179 */ 180 180 createMenu: function( menu ) { … … 207 207 * 208 208 * @param {Object} toolbar The toolbar object for creating the toolbar view. 209 * @this wp.media.controller.Region209 * @this {wp.media.controller.Region} 210 210 */ 211 211 createToolbar: function( toolbar ) { … … 218 218 * 219 219 * @param {Object} router The router object for creating the router view. 220 * @this wp.media.controller.Region220 * @this {wp.media.controller.Region} 221 221 */ 222 222 createRouter: function( router ) { … … 275 275 * 276 276 * @param {Object} content The content object for creating the iframe content view. 277 * @this wp.media.controller.Region277 * @this {wp.media.controller.Region} 278 278 */ 279 279 iframeContent: function( content ) {
Note:
See TracChangeset
for help on using the changeset viewer.