Changeset 48650
- Timestamp:
- 07/27/2020 11:33:51 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/package.json
r48644 r48650 156 156 "watch": "grunt watch", 157 157 "grunt": "grunt", 158 "lint:jsdoc": "wp-scripts lint-js", 159 "lint:jsdoc:fix": "wp-scripts lint-js --fix", 158 160 "env:start": "node ./tools/local-env/scripts/start.js", 159 161 "env:stop": "node ./tools/local-env/scripts/docker.js down", -
trunk/src/js/_enqueues/admin/common.js
r48427 r48650 138 138 * @since 3.1.0 139 139 * 140 * @param { int} diff The modifier for the column span.140 * @param {number} diff The modifier for the column span. 141 141 */ 142 142 colSpanChange : function(diff) { … … 385 385 * it will be disabled. 386 386 * 387 * @param { object} button Button jQuery object.387 * @param {Object} button Button jQuery object. 388 388 */ 389 389 function changeStructureTagButtonState( button ) { -
trunk/src/js/_enqueues/admin/edit-comments.js
r48351 r48650 160 160 * @since 5.2.0 161 161 * 162 * @param { object} response Ajax response from the server that includes a162 * @param {Object} response Ajax response from the server that includes a 163 163 * translated "comments in moderation" message. 164 164 * -
trunk/src/js/_enqueues/admin/inline-edit-post.js
r48391 r48650 390 390 * @since 2.7.0 391 391 * 392 * @param { int} id The ID for the post that has been changed.392 * @param {number} id The ID for the post that has been changed. 393 393 * @return {boolean} False, so the form does not submit when pressing 394 394 * Enter on a focused field. -
trunk/src/js/_enqueues/admin/post.js
r48396 r48650 35 35 * @memberof commentsBox 36 36 * 37 * @param { int} total Total number of comments for this post.38 * @param { int} num Optional. Number of comments to fetch, defaults to 20.37 * @param {number} total Total number of comments for this post. 38 * @param {number} num Optional. Number of comments to fetch, defaults to 20. 39 39 * @return {boolean} Always returns false. 40 40 */ … … 95 95 * @memberof commentsBox 96 96 * 97 * @param { int} total Total number of comments to load.97 * @param {number} total Total number of comments to load. 98 98 */ 99 99 load: function(total){ … … 117 117 * Set the Image ID of the Featured Image 118 118 * 119 * @param { int} id The post_id of the image to use as Featured Image.119 * @param {number} id The post_id of the image to use as Featured Image. 120 120 * 121 121 * @global -
trunk/src/js/_enqueues/admin/postbox.js
r48460 r48650 155 155 * 156 156 * @param {string} position The "previous" or "next" sortables area. 157 * @param { object} button The jQuery object representing the button that was clicked.158 * @param { object} postbox The jQuery object representing the postbox to be moved.157 * @param {Object} button The jQuery object representing the button that was clicked. 158 * @param {Object} postbox The jQuery object representing the postbox to be moved. 159 159 * 160 160 * @return {void} -
trunk/src/js/_enqueues/admin/tags-suggest.js
r48350 r48650 31 31 * @since 4.7.0 32 32 * 33 * @param { object} options Options that are passed to UI Autocomplete. Can be used to override the default settings.34 * @return { object} jQuery instance.33 * @param {Object} options Options that are passed to UI Autocomplete. Can be used to override the default settings. 34 * @return {Object} jQuery instance. 35 35 */ 36 36 $.fn.wpTagsSuggest = function( options ) { -
trunk/src/js/_enqueues/admin/widgets.js
r48387 r48650 235 235 * @ignore 236 236 * 237 * @param { object} event jQuery event object.237 * @param {Object} event jQuery event object. 238 238 */ 239 239 over: function( event ) { … … 260 260 * @ignore 261 261 * 262 * @param { object} event jQuery event object.262 * @param {Object} event jQuery event object. 263 263 */ 264 264 out: function( event ) { … … 730 730 * Used when a Widget gets dragged in/out of the Sidebar and never dropped. 731 731 * 732 * @param { object} event jQuery event object.732 * @param {Object} event jQuery event object. 733 733 */ 734 734 closeSidebar: function( event ) { -
trunk/src/js/_enqueues/lib/admin-bar.js
r47771 r48650 295 295 * 296 296 * @param {HTMLElement} element The HTML element. 297 * @param { String} className The class name.298 * @return {bool } Whether the element has the className.297 * @param {string} className The class name. 298 * @return {boolean} Whether the element has the className. 299 299 */ 300 300 function hasClass( element, className ) { … … 321 321 * 322 322 * @param {HTMLElement} element The HTML element. 323 * @param { String} className The class name.323 * @param {string} className The class name. 324 324 */ 325 325 function addClass( element, className ) { … … 345 345 * 346 346 * @param {HTMLElement} element The HTML element. 347 * @param { String} className The class name.347 * @param {string} className The class name. 348 348 */ 349 349 function removeClass( element, className ) { -
trunk/src/js/_enqueues/lib/comment-reply.js
r47506 r48650 266 266 * 267 267 * @param {HTMLElement} Element DOM element with the attribute. 268 * @param { String} Attribute the attribute to get.269 * 270 * @return { String}268 * @param {string} Attribute the attribute to get. 269 * 270 * @return {string} 271 271 */ 272 272 function getDataAttribute( element, attribute ) { … … 299 299 * @memberOf addComment 300 300 * 301 * @param { String} addBelowId HTML ID of element the form follows.302 * @param { String} commentId Database ID of comment being replied to.303 * @param { String} respondId HTML ID of 'respond' element.304 * @param { String} postId Database ID of the post.305 * @param { String} replyTo Form heading content.301 * @param {string} addBelowId HTML ID of element the form follows. 302 * @param {string} commentId Database ID of comment being replied to. 303 * @param {string} respondId HTML ID of 'respond' element. 304 * @param {string} postId Database ID of the post. 305 * @param {string} replyTo Form heading content. 306 306 */ 307 307 function moveForm( addBelowId, commentId, respondId, postId, replyTo ) { -
trunk/src/js/_enqueues/lib/image-edit.js
r48375 r48650 74 74 * 75 75 * @param {jQuery} el The element that should be modified. 76 * @param {bool |number} s The state for the element. If set to true76 * @param {boolean|number} s The state for the element. If set to true 77 77 * the element is disabled, 78 78 * otherwise the element is enabled. … … 578 578 * @param {number} postid The post ID for the image. 579 579 * @param {string} nonce The nonce to verify the request. 580 * @param { object} view The image editor view to be used for the editing.580 * @param {Object} view The image editor view to be used for the editing. 581 581 * 582 582 * @return {void|promise} Either returns void if the button was already activated … … 775 775 * @ignore 776 776 * 777 * @param { object} img jQuery object representing the image.778 * @param { object} c The selection.777 * @param {Object} img jQuery object representing the image. 778 * @param {Object} c The selection. 779 779 * 780 * @return { object}780 * @return {Object} 781 781 */ 782 782 onSelectEnd: function(img, c) { … … 789 789 * @ignore 790 790 * 791 * @param { object} img jQuery object representing the image.792 * @param { object} c The selection.791 * @param {Object} img jQuery object representing the image. 792 * @param {Object} c The selection. 793 793 * 794 794 * @return {void} … … 810 810 * 811 811 * @param {number} postid The post ID. 812 * @param { object} c The selection.812 * @param {Object} c The selection. 813 813 * 814 814 * @return {boolean} … … 842 842 * 843 843 * @param {number} postid The post ID. 844 * @param {bool } warn Warning message.845 * 846 * @return {void|bool } Returns false if there is a warning.844 * @param {boolean} warn Warning message. 845 * 846 * @return {void|boolean} Returns false if there is a warning. 847 847 */ 848 848 close : function(postid, warn) { … … 909 909 * @memberof imageEdit 910 910 * 911 * @param { object} op The original position.911 * @param {Object} op The original position. 912 912 * @param {number} postid The post ID. 913 913 * @param {string} nonce The nonce. … … 946 946 * @param {number} postid The post ID. 947 947 * @param {string} nonce The nonce. 948 * @param { object} t The target element.948 * @param {Object} t The target element. 949 949 * 950 950 * @return {boolean} … … 968 968 * @param {number} postid The post ID. 969 969 * @param {string} nonce The nonce. 970 * @param { object} t The target element.970 * @param {Object} t The target element. 971 971 * 972 972 * @return {boolean} … … 989 989 * @param {number} postid The post ID. 990 990 * @param {string} nonce The nonce. 991 * @param { object} t The target object.991 * @param {Object} t The target object. 992 992 * 993 993 * @return {void|boolean} Returns false if the crop button is disabled. -
trunk/src/js/_enqueues/lib/lists.js
r48168 r48650 203 203 * 204 204 * @param {jQuery} element Element that triggered the request. 205 * @param { object} settings Settings for the Ajax request.205 * @param {Object} settings Settings for the Ajax request. 206 206 * @return {string|number} Nonce 207 207 */ … … 259 259 * 260 260 * @param {HTMLElement} list The DOM element. 261 * @param { object} settings Settings for this list.261 * @param {Object} settings Settings for this list. 262 262 * @param {string} action The type of action to perform: 'add', 'delete', or 'dim'. 263 * @return { object|boolean} Settings if confirmed, false if not.263 * @return {Object|boolean} Settings if confirmed, false if not. 264 264 */ 265 265 pre: function( list, settings, action ) { … … 298 298 * 299 299 * @param {HTMLElement} element The DOM element. 300 * @param { object} settings Settings for this list.300 * @param {Object} settings Settings for this list. 301 301 * @return {boolean} Whether the item was added. 302 302 */ … … 400 400 * 401 401 * @param {HTMLElement} element A DOM element containing item data. 402 * @param { object} settings Settings for this list.402 * @param {Object} settings Settings for this list. 403 403 * @return {boolean} Whether the item was deleted. 404 404 */ … … 487 487 * 488 488 * @param {HTMLElement} element A DOM element containing item data. 489 * @param { object} settings Settings for this list.489 * @param {Object} settings Settings for this list. 490 490 * @return {boolean} Whether the item was dim'ed. 491 491 */ … … 622 622 * 623 623 * @param {HTMLElement} element A DOM element containing item data. 624 * @param { object} settings Settings for this list.624 * @param {Object} settings Settings for this list. 625 625 * @return {boolean} Whether the item was added. 626 626 */ -
trunk/src/js/_enqueues/lib/nav-menu.js
r48394 r48650 430 430 * Shows or hides buttons based on the location of the menu item. 431 431 * 432 * @param { object} itemToRefresh The menu item that might need its advanced accessibility buttons refreshed432 * @param {Object} itemToRefresh The menu item that might need its advanced accessibility buttons refreshed 433 433 */ 434 434 refreshAdvancedAccessibilityOfItem : function( itemToRefresh ) { … … 1294 1294 * Remove a menu item. 1295 1295 * 1296 * @param { object} el The element to be removed as a jQuery object.1296 * @param {Object} el The element to be removed as a jQuery object. 1297 1297 * 1298 1298 * @fires document#menu-removing-item Passes the element to be removed. -
trunk/src/js/_enqueues/wp/a11y.js
r46800 r48650 19 19 * @since 4.3.0 Introduced the 'ariaLive' argument. 20 20 * 21 * @param { String} message The message to be announced by Assistive Technologies.22 * @param { String} [ariaLive] The politeness level for aria-live. Possible values:21 * @param {string} message The message to be announced by Assistive Technologies. 22 * @param {string} [ariaLive] The politeness level for aria-live. Possible values: 23 23 * polite or assertive. Default polite. 24 24 * @return {void} … … 54 54 * @since 4.3.0 55 55 * 56 * @param { String} ariaLive Optional. Value for the 'aria-live' attribute, default 'polite'.56 * @param {string} ariaLive Optional. Value for the 'aria-live' attribute, default 'polite'. 57 57 * 58 58 * @return {Object} $container The ARIA live region jQuery object. -
trunk/src/js/_enqueues/wp/api.js
r48110 r48650 187 187 * 188 188 * @param {string} route The endpoint route. 189 * @param { int} part The number of parts from the end of the route to retrieve. Default 1.189 * @param {number} part The number of parts from the end of the route to retrieve. Default 1. 190 190 * Example route `/a/b/c`: part 1 is `c`, part 2 is `b`, part 3 is `a`. 191 191 * @param {string} [versionString] Version string, defaults to `wp.api.versionString`. … … 235 235 * Add args and options to a model prototype from a route's endpoints. 236 236 * 237 * @param { array} routeEndpoints Array of route endpoints.237 * @param {Array} routeEndpoints Array of route endpoints. 238 238 * @param {Object} modelInstance An instance of the model (or collection) 239 239 * to add the args to. … … 362 362 * 363 363 * @param {string} parentModel The parent model. 364 * @param { int} modelId The model ID if the object to request364 * @param {number} modelId The model ID if the object to request 365 365 * @param {string} modelName The model name to use when constructing the model. 366 366 * @param {string} embedSourcePoint Where to check the embedds object for _embed data. … … 514 514 * @param {string} key The meta key. 515 515 * 516 * @return { object} The post meta value.516 * @return {Object} The post meta value. 517 517 */ 518 518 getMeta: function( key ) { … … 524 524 * Get all meta key/values for a post. 525 525 * 526 * @return { object} The post metas, as a key value pair object.526 * @return {Object} The post metas, as a key value pair object. 527 527 */ 528 528 getMetas: function() { … … 533 533 * Set a group of meta key/values for a post. 534 534 * 535 * @param { object} meta The post meta to set, as key/value pairs.535 * @param {Object} meta The post meta to set, as key/value pairs. 536 536 */ 537 537 setMetas: function( meta ) { … … 545 545 * 546 546 * @param {string} key The meta key. 547 * @param { object} value The meta value.547 * @param {Object} value The meta value. 548 548 */ 549 549 setMeta: function( key, value ) { … … 590 590 * Accepts an array of tag slugs, or a Tags collection. 591 591 * 592 * @param { array|Backbone.Collection} tags The tags to set on the post.592 * @param {Array|Backbone.Collection} tags The tags to set on the post. 593 593 * 594 594 */ … … 636 636 * Accepts a Tags collection. 637 637 * 638 * @param { array|Backbone.Collection} tags The tags to set on the post.638 * @param {Array|Backbone.Collection} tags The tags to set on the post. 639 639 * 640 640 */ … … 674 674 * Accepts an array of category slugs, or a Categories collection. 675 675 * 676 * @param { array|Backbone.Collection} categories The categories to set on the post.676 * @param {Array|Backbone.Collection} categories The categories to set on the post. 677 677 * 678 678 */ … … 721 721 * Accepts Categories collection. 722 722 * 723 * @param { array|Backbone.Collection} categories The categories to set on the post.723 * @param {Array|Backbone.Collection} categories The categories to set on the post. 724 724 * 725 725 */ … … 1496 1496 * Initialize the wp-api, optionally passing the API root. 1497 1497 * 1498 * @param { object} [args]1498 * @param {Object} [args] 1499 1499 * @param {string} [args.nonce] The nonce. Optional, defaults to wpApiSettings.nonce. 1500 1500 * @param {string} [args.apiRoot] The api root. Optional, defaults to wpApiSettings.root. 1501 1501 * @param {string} [args.versionString] The version string. Optional, defaults to wpApiSettings.root. 1502 * @param { object} [args.schema] The schema. Optional, will be fetched from API if not provided.1502 * @param {Object} [args.schema] The schema. Optional, will be fetched from API if not provided. 1503 1503 */ 1504 1504 wp.api.init = function( args ) { -
trunk/src/js/_enqueues/wp/code-editor.js
r47122 r48650 40 40 * 41 41 * @param {CodeMirror} editor - Editor. 42 * @param { object} settings - Code editor settings.43 * @param { object} settings.codeMirror - Settings for CodeMirror.42 * @param {Object} settings - Code editor settings. 43 * @param {Object} settings.codeMirror - Settings for CodeMirror. 44 44 * @param {Function} settings.onChangeLintingErrors - Callback for when there are changes to linting errors. 45 45 * @param {Function} settings.onUpdateErrorNotice - Callback to update error notice. … … 65 65 * Get lint options. 66 66 * 67 * @return { object} Lint options.67 * @return {Object} Lint options. 68 68 */ 69 69 function getLintOptions() { // eslint-disable-line complexity … … 214 214 * 215 215 * @param {CodeMirror} codemirror - Editor. 216 * @param { object} settings - Code editor settings.217 * @param { object} settings.codeMirror - Settings for CodeMirror.216 * @param {Object} settings - Code editor settings. 217 * @param {Object} settings.codeMirror - Settings for CodeMirror. 218 218 * @param {Function} settings.onTabNext - Callback to handle tabbing to the next tabbable element. 219 219 * @param {Function} settings.onTabPrevious - Callback to handle tabbing to the previous tabbable element. … … 268 268 * 269 269 * @param {string|jQuery|Element} textarea - The HTML id, jQuery object, or DOM Element for the textarea that is used for the editor. 270 * @param { object} [settings] - Settings to override defaults.270 * @param {Object} [settings] - Settings to override defaults. 271 271 * @param {Function} [settings.onChangeLintingErrors] - Callback for when the linting errors have changed. 272 272 * @param {Function} [settings.onUpdateErrorNotice] - Callback for when error notice should be displayed. 273 273 * @param {Function} [settings.onTabPrevious] - Callback to handle tabbing to the previous tabbable element. 274 274 * @param {Function} [settings.onTabNext] - Callback to handle tabbing to the next tabbable element. 275 * @param { object} [settings.codemirror] - Options for CodeMirror.276 * @param { object} [settings.csslint] - Rules for CSSLint.277 * @param { object} [settings.htmlhint] - Rules for HTMLHint.278 * @param { object} [settings.jshint] - Rules for JSHint.275 * @param {Object} [settings.codemirror] - Options for CodeMirror. 276 * @param {Object} [settings.csslint] - Rules for CSSLint. 277 * @param {Object} [settings.htmlhint] - Rules for HTMLHint. 278 * @param {Object} [settings.jshint] - Rules for JSHint. 279 279 * 280 280 * @return {CodeEditorInstance} Instance. -
trunk/src/js/_enqueues/wp/custom-header.js
r47122 r48650 109 109 * Initialize the video handler. 110 110 * 111 * @param { object} settings Video settings.111 * @param {Object} settings Video settings. 112 112 */ 113 113 initialize: function( settings ) { … … 218 218 * 219 219 * @abstract 220 * @param { object} settings Video settings.220 * @param {Object} settings Video settings. 221 221 * @return {boolean} 222 222 */ … … 240 240 * @memberOf wp 241 241 * 242 * @param { object} protoProps Properties to apply to the prototype.242 * @param {Object} protoProps Properties to apply to the prototype. 243 243 * @return CustomHandler The subclass. 244 244 */ … … 272 272 * Whether the native handler supports a video. 273 273 * 274 * @param { object} settings Video settings.274 * @param {Object} settings Video settings. 275 275 * @return {boolean} 276 276 */ … … 346 346 * Whether the handler supports a video. 347 347 * 348 * @param { object} settings Video settings.348 * @param {Object} settings Video settings. 349 349 * @return {boolean} 350 350 */ -
trunk/src/js/_enqueues/wp/customize/base.js
r48110 r48650 189 189 /** 190 190 * @param {mixed} initial The initial value. 191 * @param { object} options191 * @param {Object} options 192 192 */ 193 193 initialize: function( initial, options ) { … … 221 221 * Set the value and trigger all bound callbacks. 222 222 * 223 * @param { object} to New value.223 * @param {Object} to New value. 224 224 */ 225 225 set: function( to ) { … … 383 383 * 384 384 * @param {string} id The ID of the item to look for. 385 * @return { Boolean}385 * @return {boolean} 386 386 */ 387 387 has: function( id ) { … … 448 448 * 449 449 * @param {Function} callback Function to invoke. 450 * @param { object} context Object context to invoke the function with. Optional.450 * @param {Object} context Object context to invoke the function with. Optional. 451 451 */ 452 452 each: function( callback, context ) { … … 683 683 * Initialize Messenger. 684 684 * 685 * @param { object} params - Parameters to configure the messenger.685 * @param {Object} params - Parameters to configure the messenger. 686 686 * {string} params.url - The URL to communicate with. 687 687 * {window} params.targetWindow - The window instance to communicate with. Default window.parent. 688 688 * {string} params.channel - If provided, will send the channel with each message and only accept messages a matching channel. 689 * @param { object} options - Extend any instance parameter or method with this object.689 * @param {Object} options - Extend any instance parameter or method with this object. 690 690 */ 691 691 initialize: function( params, options ) { … … 788 788 * 789 789 * @param {string} id The event name. 790 * @param { object} data Data.790 * @param {Object} data Data. 791 791 */ 792 792 send: function( id, data ) { … … 863 863 * 864 864 * @param {string} code - Notification code. 865 * @param { object} params - Notification parameters.865 * @param {Object} params - Notification parameters. 866 866 * @param {string} params.message - Message. 867 867 * @param {string} [params.type=error] - Type. … … 935 935 * @alias wp.customize.get 936 936 * 937 * @return { object}937 * @return {Object} 938 938 */ 939 939 api.get = function() { … … 963 963 * 964 964 * @param {string} queryString Query string. 965 * @return { object} Parsed query string.965 * @return {Object} Parsed query string. 966 966 */ 967 967 api.utils.parseQueryString = function parseQueryString( queryString ) { -
trunk/src/js/_enqueues/wp/customize/controls.js
r48210 r48650 26 26 * 27 27 * @param {string} code - Code. 28 * @param { object} params - Params.28 * @param {Object} params - Params. 29 29 */ 30 30 initialize: function( code, params ) { … … 95 95 * @augments wp.customize.Values 96 96 * 97 * @param { object} options - Options.97 * @param {Object} options - Options. 98 98 * @param {jQuery} [options.container] - Container element for notifications. This can be injected later. 99 99 * @param {boolean} [options.alt] - Whether alternative style should be used when rendering notifications. … … 175 175 * 176 176 * @since 4.9.0 177 * @param { object} args - Args.177 * @param {Object} args - Args. 178 178 * @param {boolean} [args.sort=false] - Whether to return the notifications sorted. 179 179 * @return {Array.<wp.customize.Notification>} Notifications. … … 363 363 * @param {string} id - The setting ID. 364 364 * @param {*} value - The initial value of the setting. 365 * @param { object} [options={}] - Options.365 * @param {Object} [options={}] - Options. 366 366 * @param {string} [options.transport=refresh] - The transport to use for previewing. Supports 'refresh' and 'postMessage'. 367 367 * @param {boolean} [options.dirty=false] - Whether the setting should be considered initially dirty. 368 * @param { object} [options.previewer] - The Previewer instance to sync with. Defaults to wp.customize.previewer.368 * @param {Object} [options.previewer] - The Previewer instance to sync with. Defaults to wp.customize.previewer. 369 369 */ 370 370 initialize: function( id, value, options ) { … … 496 496 * @access public 497 497 * 498 * @param { object} [options] Options.498 * @param {Object} [options] Options. 499 499 * @param {boolean} [options.unsaved=false] Whether only values not saved yet into a changeset will be returned (differential changes). 500 * @return { object} Dirty setting values.500 * @return {Object} Dirty setting values. 501 501 */ 502 502 api.dirtyValues = function dirtyValues( options ) { … … 529 529 * @access public 530 530 * 531 * @param { object} [changes] - Mapping of setting IDs to setting params each normally including a value property, or mapping to null.531 * @param {Object} [changes] - Mapping of setting IDs to setting params each normally including a value property, or mapping to null. 532 532 * If not provided, then the changes will still be obtained from unsaved dirty settings. 533 * @param { object} [args] - Additional options for the save request.533 * @param {Object} [args] - Additional options for the save request. 534 534 * @param {boolean} [args.autosave=false] - Whether changes will be stored in autosave revision if the changeset has been promoted from an auto-draft. 535 535 * @param {boolean} [args.force=false] - Send request to update even when there are no changes to submit. This can be used to request the latest status of the changeset on the server. … … 737 737 * @param {(wp.customize.Panel|wp.customize.Section|wp.customize.Control)} a 738 738 * @param {(wp.customize.Panel|wp.customize.Section|wp.customize.Control)} b 739 * @return { Number}739 * @return {number} 740 740 */ 741 741 api.utils.prioritySort = function ( a, b ) { … … 797 797 * 798 798 * @param {jQuery} button - The element to highlight. 799 * @param { object} [options] - Options.799 * @param {Object} [options] - Options. 800 800 * @param {number} [options.delay=0] - Delay in milliseconds. 801 801 * @param {jQuery} [options.focusTarget] - A target for user focus that defaults to the highlighted element. … … 851 851 * @since 4.9.0 852 852 * 853 * @return { int} Current timestamp.853 * @return {number} Current timestamp. 854 854 */ 855 855 api.utils.getCurrentTimestamp = function getCurrentTimestamp() { … … 870 870 * @since 4.9.0 871 871 * 872 * @param {string| int|Date} datetime - Date time or timestamp of the future date.873 * @return { int} remainingTime - Remaining time in milliseconds.872 * @param {string|number|Date} datetime - Date time or timestamp of the future date. 873 * @return {number} remainingTime - Remaining time in milliseconds. 874 874 */ 875 875 api.utils.getRemainingTime = function getRemainingTime( datetime ) { … … 941 941 * 942 942 * @param {string} id - The ID for the container. 943 * @param { object} options - Object containing one property: params.943 * @param {Object} options - Object containing one property: params. 944 944 * @param {string} options.title - Title shown when panel is collapsed and expanded. 945 945 * @param {string} [options.description] - Description shown at the top of the panel. … … 949 949 * @param {string} [options.content] - The markup to be used for the panel container. If empty, a JS template is used. 950 950 * @param {boolean} [options.active=true] - Whether the panel is active or not. 951 * @param { object} [options.params] - Deprecated wrapper for the above properties.951 * @param {Object} [options.params] - Deprecated wrapper for the above properties. 952 952 */ 953 953 initialize: function ( id, options ) { … … 1056 1056 * @since 4.1.0 1057 1057 * 1058 * @param { String} parentType1059 * @param { String} childType1058 * @param {string} parentType 1059 * @param {string} childType 1060 1060 * @return {Array} 1061 1061 */ … … 1155 1155 * @since 4.1.0 1156 1156 * 1157 * @param { Boolean} active1157 * @param {boolean} active 1158 1158 * @param {Object} [params] 1159 * @return { Boolean} False if state already applied.1159 * @return {boolean} False if state already applied. 1160 1160 */ 1161 1161 _toggleActive: function ( active, params ) { … … 1176 1176 /** 1177 1177 * @param {Object} [params] 1178 * @return { Boolean} False if already active.1178 * @return {boolean} False if already active. 1179 1179 */ 1180 1180 activate: function ( params ) { … … 1184 1184 /** 1185 1185 * @param {Object} [params] 1186 * @return { Boolean} False if already inactive.1186 * @return {boolean} False if already inactive. 1187 1187 */ 1188 1188 deactivate: function ( params ) { … … 1201 1201 * Handle the toggle logic for expand/collapse. 1202 1202 * 1203 * @param { Boolean} expanded - The new state to apply.1203 * @param {boolean} expanded - The new state to apply. 1204 1204 * @param {Object} [params] - Object containing options for expand/collapse. 1205 1205 * @param {Function} [params.completeCallback] - Function to call when expansion/collapse is complete. 1206 * @return { Boolean} False if state already applied or active state is false.1206 * @return {boolean} False if state already applied or active state is false. 1207 1207 */ 1208 1208 _toggleExpanded: function( expanded, params ) { … … 1241 1241 /** 1242 1242 * @param {Object} [params] 1243 * @return { Boolean} False if already expanded or if inactive.1243 * @return {boolean} False if already expanded or if inactive. 1244 1244 */ 1245 1245 expand: function ( params ) { … … 1249 1249 /** 1250 1250 * @param {Object} [params] 1251 * @return { Boolean} False if already collapsed.1251 * @return {boolean} False if already collapsed. 1252 1252 */ 1253 1253 collapse: function ( params ) { … … 1410 1410 * 1411 1411 * @param {string} id - The ID for the section. 1412 * @param { object} options - Options.1412 * @param {Object} options - Options. 1413 1413 * @param {string} options.title - Title shown when section is collapsed and expanded. 1414 1414 * @param {string} [options.description] - Description shown at the top of the section. … … 1419 1419 * @param {string} options.panel - The ID for the panel this section is associated with. 1420 1420 * @param {string} [options.customizeAction] - Additional context information shown before the section title when expanded. 1421 * @param { object} [options.params] - Deprecated wrapper for the above properties.1421 * @param {Object} [options.params] - Deprecated wrapper for the above properties. 1422 1422 */ 1423 1423 initialize: function ( id, options ) { … … 1546 1546 * @since 4.1.0 1547 1547 * 1548 * @return { Boolean}1548 * @return {boolean} 1549 1549 */ 1550 1550 isContextuallyActive: function () { … … 1576 1576 * @since 4.1.0 1577 1577 * 1578 * @param { Boolean} expanded1578 * @param {boolean} expanded 1579 1579 * @param {Object} args 1580 1580 */ … … 1698 1698 * 1699 1699 * @param {string} id - ID. 1700 * @param { object} options - Options.1700 * @param {Object} options - Options. 1701 1701 * @return {void} 1702 1702 */ … … 1800 1800 * @since 4.2.0 1801 1801 * 1802 * @return { Boolean}1802 * @return {boolean} 1803 1803 */ 1804 1804 isContextuallyActive: function () { … … 1952 1952 * @since 4.2.0 1953 1953 * 1954 * @param { Boolean} expanded1954 * @param {boolean} expanded 1955 1955 * @param {Object} args 1956 * @param { Boolean} args.unchanged1956 * @param {boolean} args.unchanged 1957 1957 * @param {Function} args.completeCallback 1958 1958 * @return {void} … … 2168 2168 * @since 4.9.0 2169 2169 * @param {Array} themes - Array of theme data to create controls with. 2170 * @param { integer} page - Page of results being loaded.2170 * @param {number} page - Page of results being loaded. 2171 2171 * @return {void} 2172 2172 */ … … 2413 2413 * @since 4.9.0 2414 2414 * 2415 * @return { int} Visible count.2415 * @return {number} Visible count. 2416 2416 */ 2417 2417 getVisibleCount: function() { … … 2560 2560 * @since 4.2.0 2561 2561 * 2562 * @param { object} theme - Theme.2562 * @param {Object} theme - Theme. 2563 2563 * @param {Function} [callback] - Callback once the details have been shown. 2564 2564 * @return {void} … … 2668 2668 * @since 4.9.0 2669 2669 * 2670 * @param { Boolean} expanded - The expanded state to transition to.2670 * @param {boolean} expanded - The expanded state to transition to. 2671 2671 * @param {Object} [args] - Args. 2672 2672 * @param {boolean} [args.unchanged] - Whether the state is already known to not be changed, and so short-circuit with calling completeCallback early. … … 2763 2763 * 2764 2764 * @param {string} id - The ID for the panel. 2765 * @param { object} options - Object containing one property: params.2765 * @param {Object} options - Object containing one property: params. 2766 2766 * @param {string} options.title - Title shown when panel is collapsed and expanded. 2767 2767 * @param {string} [options.description] - Description shown at the top of the panel. … … 2770 2770 * @param {string} [options.content] - The markup to be used for the panel container. If empty, a JS template is used. 2771 2771 * @param {boolean} [options.active=true] - Whether the panel is active or not. 2772 * @param { object} [options.params] - Deprecated wrapper for the above properties.2772 * @param {Object} [options.params] - Deprecated wrapper for the above properties. 2773 2773 */ 2774 2774 initialize: function ( id, options ) { … … 2906 2906 * @since 4.1.0 2907 2907 * 2908 * @param { Boolean} expanded2908 * @param {boolean} expanded 2909 2909 * @param {Object} args 2910 * @param { Boolean} args.unchanged2910 * @param {boolean} args.unchanged 2911 2911 * @param {Function} args.completeCallback 2912 2912 * @return {void} … … 3037 3037 * 3038 3038 * @param {string} id - The ID for the panel. 3039 * @param { object} options - Options.3039 * @param {Object} options - Options. 3040 3040 * @return {void} 3041 3041 */ … … 3134 3134 * @since 4.9.0 3135 3135 * 3136 * @param { Boolean} expanded - Expanded state.3136 * @param {boolean} expanded - Expanded state. 3137 3137 * @param {Object} args - Args. 3138 * @param { Boolean} args.unchanged - Whether or not the state changed.3138 * @param {boolean} args.unchanged - Whether or not the state changed. 3139 3139 * @param {Function} args.completeCallback - Callback to execute when the animation completes. 3140 3140 * @return {void} … … 3483 3483 * 3484 3484 * @param {string} id - Unique identifier for the control instance. 3485 * @param { object} options - Options hash for the control instance.3486 * @param { object} options.type - Type of control (e.g. text, radio, dropdown-pages, etc.)3485 * @param {Object} options - Options hash for the control instance. 3486 * @param {Object} options.type - Type of control (e.g. text, radio, dropdown-pages, etc.) 3487 3487 * @param {string} [options.content] - The HTML content for the control or at least its container. This should normally be left blank and instead supplying a templateId. 3488 3488 * @param {string} [options.templateId] - Template ID for control's content. … … 3497 3497 * @param {string} options.description - Description. 3498 3498 * @param {number} [options.instanceNumber] - Order in which this instance was created in relation to other instances. 3499 * @param { object} [options.params] - Deprecated wrapper for the above properties.3499 * @param {Object} [options.params] - Deprecated wrapper for the above properties. 3500 3500 * @return {void} 3501 3501 */ … … 3901 3901 * @since 4.1.0 3902 3902 * 3903 * @param { Boolean} active3903 * @param {boolean} active 3904 3904 * @param {Object} args 3905 * @param { Number} args.duration3905 * @param {number} args.duration 3906 3906 * @param {Function} args.completeCallback 3907 3907 */ … … 4356 4356 * Called when the "Remove" link is clicked. Empties the setting. 4357 4357 * 4358 * @param { object} event jQuery Event object4358 * @param {Object} event jQuery Event object 4359 4359 */ 4360 4360 removeFile: function( event ) { … … 4566 4566 * After the image has been cropped, apply the cropped image data to the setting. 4567 4567 * 4568 * @param { object} croppedImage Cropped attachment data.4568 * @param {Object} croppedImage Cropped attachment data. 4569 4569 */ 4570 4570 onCropped: function( croppedImage ) { … … 4642 4642 * Return whether the image must be cropped, based on required dimensions. 4643 4643 * 4644 * @param {bool } flexW4645 * @param {bool } flexH4646 * @param { int} dstW4647 * @param { int} dstH4648 * @param { int} imgW4649 * @param { int} imgH4650 * @return {bool }4644 * @param {boolean} flexW 4645 * @param {boolean} flexH 4646 * @param {number} dstW 4647 * @param {number} dstH 4648 * @param {number} imgW 4649 * @param {number} imgH 4650 * @return {boolean} 4651 4651 */ 4652 4652 mustBeCropped: function( flexW, flexH, dstW, dstH, imgW, imgH ) { … … 4685 4685 * Updates the setting and re-renders the control UI. 4686 4686 * 4687 * @param { object} attachment4687 * @param {Object} attachment 4688 4688 */ 4689 4689 setImageFromAttachment: function( attachment ) { … … 4771 4771 * Updates the setting and re-renders the control UI. 4772 4772 * 4773 * @param { object} attachment4773 * @param {Object} attachment 4774 4774 */ 4775 4775 setImageFromAttachment: function( attachment ) { … … 4800 4800 * Called when the "Remove" link is clicked. Empties the setting. 4801 4801 * 4802 * @param { object} event jQuery Event object4802 * @param {Object} event jQuery Event object 4803 4803 */ 4804 4804 removeFile: function( event ) { … … 5010 5010 * After the image has been cropped, apply the cropped image data to the setting. 5011 5011 * 5012 * @param { object} croppedImage Cropped attachment data.5012 * @param {Object} croppedImage Cropped attachment data. 5013 5013 */ 5014 5014 onCropped: function(croppedImage) { … … 5023 5023 * If cropping was skipped, apply the image data directly to the setting. 5024 5024 * 5025 * @param { object} selection5025 * @param {Object} selection 5026 5026 */ 5027 5027 onSkippedCrop: function(selection) { … … 5037 5037 * collection. 5038 5038 * 5039 * @param { String} url5040 * @param { Number} attachmentId5041 * @param { Number} width5042 * @param { Number} height5039 * @param {string} url 5040 * @param {number} attachmentId 5041 * @param {number} width 5042 * @param {number} height 5043 5043 */ 5044 5044 setImageFromURL: function(url, attachmentId, width, height) { … … 5246 5246 * @since 4.9.0 5247 5247 * @param {string} id - Unique identifier for the control instance. 5248 * @param { object} options - Options hash for the control instance.5248 * @param {Object} options - Options hash for the control instance. 5249 5249 * @return {void} 5250 5250 */ … … 5385 5385 * 5386 5386 * @since 4.9.0 5387 * @param { object} codeEditorSettings - Code editor settings.5387 * @param {Object} codeEditorSettings - Code editor settings. 5388 5388 * @return {void} 5389 5389 */ … … 5627 5627 * 5628 5628 * @param {string} datetime - Date/Time string. Accepts Y-m-d[ H:i[:s]] format. 5629 * @return { object|null} Returns object containing date components or null if parse error.5629 * @return {Object|null} Returns object containing date components or null if parse error. 5630 5630 */ 5631 5631 parseDateTime: function parseDateTime( datetime ) { … … 6219 6219 * @augments wp.customize.Messenger 6220 6220 * 6221 * @param { object} params.container6222 * @param { object} params.previewUrl6223 * @param { object} params.query6224 * @param { object} options6221 * @param {Object} params.container 6222 * @param {Object} params.previewUrl 6223 * @param {Object} params.query 6224 * @param {Object} options 6225 6225 */ 6226 6226 initialize: function( params, options ) { … … 6249 6249 * Run the preview request. 6250 6250 * 6251 * @param { object} deferred jQuery Deferred object to be resolved with6251 * @param {Object} deferred jQuery Deferred object to be resolved with 6252 6252 * the request. 6253 6253 */ … … 6457 6457 * @augments wp.customize.Messenger 6458 6458 * 6459 * @param { array} params.allowedUrls6459 * @param {Array} params.allowedUrls 6460 6460 * @param {string} params.container A selector or jQuery element for the preview 6461 6461 * frame to be placed. 6462 6462 * @param {string} params.form 6463 6463 * @param {string} params.previewUrl The URL to preview. 6464 * @param { object} options6464 * @param {Object} options 6465 6465 */ 6466 6466 initialize: function( params, options ) { … … 6610 6610 * @access public 6611 6611 * 6612 * @param { object} data - Data from preview.6612 * @param {Object} data - Data from preview. 6613 6613 * @param {string} data.currentUrl - Current URL. 6614 * @param { object} data.activePanels - Active panels.6615 * @param { object} data.activeSections Active sections.6616 * @param { object} data.activeControls Active controls.6614 * @param {Object} data.activePanels - Active panels. 6615 * @param {Object} data.activeSections Active sections. 6616 * @param {Object} data.activeControls Active controls. 6617 6617 * @return {void} 6618 6618 */ … … 6918 6918 * @private 6919 6919 * 6920 * @param { object} args6921 * @param { object} args.settingValidities6920 * @param {Object} args 6921 * @param {Object} args.settingValidities 6922 6922 * @param {boolean} [args.focusInvalidControl=false] 6923 6923 * @return {void} … … 6994 6994 * @since 4.6.0 6995 6995 * @param {string[]} settingIds Setting IDs. 6996 * @return { object<string, wp.customize.Control>} Mapping setting ids to arrays of controls.6996 * @return {Object<string, wp.customize.Control>} Mapping setting ids to arrays of controls. 6997 6997 */ 6998 6998 api.findControlsForSettings = function findControlsForSettings( settingIds ) { … … 7402 7402 * @access public 7403 7403 * 7404 * @param { object} [options] Options.7404 * @param {Object} [options] Options. 7405 7405 * @param {boolean} [options.excludeCustomizedSaved=false] Exclude saved settings in customized response (values pending writing to changeset). 7406 * @return { object} Query vars.7406 * @return {Object} Query vars. 7407 7407 */ 7408 7408 query: function( options ) { … … 7440 7440 * @since 4.7.0 Added args param and return value. 7441 7441 * 7442 * @param { object} [args] Args.7442 * @param {Object} [args] Args. 7443 7443 * @param {string} [args.status=publish] Status. 7444 7444 * @param {string} [args.date] Date, in local time in MySQL format. … … 8122 8122 * 8123 8123 * @param {string} [code] - Code. 8124 * @param { object} [params] - Params.8124 * @param {Object} [params] - Params. 8125 8125 */ 8126 8126 initialize: function( code, params ) { … … 8211 8211 * @since 4.9.0 8212 8212 * 8213 * @param { object} [args] - Args.8214 * @param { object} [args.lockUser] - Lock user data.8213 * @param {Object} [args] - Args. 8214 * @param {Object} [args.lockUser] - Lock user data. 8215 8215 * @param {boolean} [args.allowOverride=false] - Whether override is allowed. 8216 8216 * @return {void} … … 8638 8638 * @access private 8639 8639 * 8640 * @param { object} header - Header.8640 * @param {Object} header - Header. 8641 8641 * @param {number} scrollTop - Scroll top. 8642 8642 * @param {number} scrollDirection - Scroll direction, negative number being up and positive being down. -
trunk/src/js/_enqueues/wp/customize/nav-menus.js
r48461 r48650 96 96 * @alias wp.customize.Menus.insertAutoDraftPost 97 97 * 98 * @param { object} params - Parameters for the draft post to create.98 * @param {Object} params - Parameters for the draft post to create. 99 99 * @param {string} params.post_type - Post type to add. 100 100 * @param {string} params.post_title - Post title to use. … … 388 388 * @access private 389 389 * 390 * @param {Array.< object>} itemTypes List of objects containing type and key.390 * @param {Array.<Object>} itemTypes List of objects containing type and key. 391 391 * @param {string} deprecated Formerly the object parameter. 392 392 * @return {void} … … 906 906 * @since 4.3.0 907 907 * 908 * @param { String} id908 * @param {string} id 909 909 * @param {Object} options 910 910 */ … … 2213 2213 * @private 2214 2214 * 2215 * @param { Number} offset 1|-12215 * @param {number} offset 1|-1 2216 2216 */ 2217 2217 _changePosition: function( offset ) { … … 2273 2273 * @private 2274 2274 * 2275 * @param { Number} offset 1|-12275 * @param {number} offset 1|-1 2276 2276 */ 2277 2277 _changeDepth: function( offset ) { … … 2656 2656 * which is called in MenuSection.onChangeExpanded() 2657 2657 * 2658 * @param { object} menuList - The element that has sortable().2658 * @param {Object} menuList - The element that has sortable(). 2659 2659 */ 2660 2660 _setupSortable: function( menuList ) { … … 2855 2855 * Enable/disable the reordering UI 2856 2856 * 2857 * @param { Boolean} showOrHide to enable/disable reordering2857 * @param {boolean} showOrHide to enable/disable reordering 2858 2858 */ 2859 2859 toggleReordering: function( showOrHide ) { … … 2995 2995 * Add a new item to this menu. 2996 2996 * 2997 * @param { object} item - Value for the nav_menu_item setting to be created.2997 * @param {Object} item - Value for the nav_menu_item setting to be created. 2998 2998 * @return {wp.customize.Menus.controlConstructor.nav_menu_item} The newly-created nav_menu_item control instance. 2999 2999 */ … … 3136 3136 * @alias wp.customize.Menus.applySavedData 3137 3137 * 3138 * @param { object} data3139 * @param { array} data.nav_menu_updates3140 * @param { array} data.nav_menu_item_updates3138 * @param {Object} data 3139 * @param {Array} data.nav_menu_updates 3140 * @param {Array} data.nav_menu_item_updates 3141 3141 */ 3142 3142 api.Menus.applySavedData = function( data ) { … … 3395 3395 * 3396 3396 * @param {string} menuItemId 3397 * @return { object|null}3397 * @return {Object|null} 3398 3398 */ 3399 3399 api.Menus.getMenuItemControl = function( menuItemId ) { … … 3404 3404 * @alias wp.customize.Menus~menuItemIdToSettingId 3405 3405 * 3406 * @param { String} menuItemId3406 * @param {string} menuItemId 3407 3407 */ 3408 3408 function menuItemIdToSettingId( menuItemId ) { -
trunk/src/js/_enqueues/wp/customize/preview-nav-menus.js
r46800 r48650 99 99 * @param {string} [options.params.navMenuArgs.theme_location] 100 100 * @param {number} [options.params.navMenuArgs.menu] 101 * @param { object} [options.constructingContainerContext]101 * @param {Object} [options.constructingContainerContext] 102 102 */ 103 103 initialize: function( id, options ) { … … 133 133 * @since 4.5.0 134 134 * @param {wp.customize.Value|string} setting - Object or ID. 135 * @param {number| object|false|null} newValue - New value, or null if the setting was just removed.136 * @param {number| object|false|null} oldValue - Old value, or null if the setting was just added.135 * @param {number|Object|false|null} newValue - New value, or null if the setting was just removed. 136 * @param {number|Object|false|null} oldValue - Old value, or null if the setting was just added. 137 137 * @return {boolean} 138 138 */ … … 264 264 * Request full refresh if there are nav menu instances that lack partials which also match the supplied args. 265 265 * 266 * @param { object} navMenuInstanceArgs266 * @param {Object} navMenuInstanceArgs 267 267 */ 268 268 self.handleUnplacedNavMenuInstances = function( navMenuInstanceArgs ) { … … 284 284 * 285 285 * @param {wp.customize.Value} setting 286 * @param { object} [options]286 * @param {Object} [options] 287 287 * @param {boolean} options.fire Whether to invoke the callback after binding. 288 288 * This is used when a dynamic setting is added. … … 371 371 * @since 4.5.0 372 372 * 373 * @param { object} newItem New value for nav_menu_item[] setting.374 * @param { object} oldItem Old value for nav_menu_item[] setting.373 * @param {Object} newItem New value for nav_menu_item[] setting. 374 * @param {Object} oldItem Old value for nav_menu_item[] setting. 375 375 * @this {wp.customize.Value} 376 376 */ -
trunk/src/js/_enqueues/wp/customize/preview.js
r47122 r48650 103 103 api.Preview = api.Messenger.extend(/** @lends wp.customize.Preview.prototype */{ 104 104 /** 105 * @param { object} params - Parameters to configure the messenger.106 * @param { object} options - Extend any instance parameter or method with this object.105 * @param {Object} params - Parameters to configure the messenger. 106 * @param {Object} options - Extend any instance parameter or method with this object. 107 107 */ 108 108 initialize: function( params, options ) { … … 277 277 * @param {string} element.pathname Path. 278 278 * @param {string} element.host Host. 279 * @param { object} [options]280 * @param { object} [options.allowAdminAjax=false] Allow admin-ajax.php requests.279 * @param {Object} [options] 280 * @param {Object} [options.allowAdminAjax=false] Allow admin-ajax.php requests. 281 281 * @return {boolean} Is appropriate for changeset link. 282 282 */ … … 400 400 * Rewrite Ajax requests to inject customizer state. 401 401 * 402 * @param { object} options Options.402 * @param {Object} options Options. 403 403 * @param {string} options.type Type. 404 404 * @param {string} options.url URL. 405 * @param { object} originalOptions Original options.405 * @param {Object} originalOptions Original options. 406 406 * @param {XMLHttpRequest} xhr XHR. 407 407 * @return {void} -
trunk/src/js/_enqueues/wp/customize/selective-refresh.js
r47122 r48650 61 61 * 62 62 * @param {string} id - Unique identifier for the partial instance. 63 * @param { object} options - Options hash for the partial instance.63 * @param {Object} options - Options hash for the partial instance. 64 64 * @param {string} options.type - Type of partial (e.g. nav_menu, widget, etc) 65 65 * @param {string} options.selector - jQuery selector to find the container element in the page. 66 * @param { array} options.settings - The IDs for the settings the partial relates to.66 * @param {Array} options.settings - The IDs for the settings the partial relates to. 67 67 * @param {string} options.primarySetting - The ID for the primary setting the partial renders. 68 * @param {bool } options.fallbackRefresh - Whether to refresh the entire preview in case of a partial refresh failure.69 * @param { object} [options.params] - Deprecated wrapper for the above properties.68 * @param {boolean} options.fallbackRefresh - Whether to refresh the entire preview in case of a partial refresh failure. 69 * @param {Object} [options.params] - Deprecated wrapper for the above properties. 70 70 */ 71 71 initialize: function( id, options ) { … … 286 286 * @since 4.5.0 287 287 * 288 * @return { String[]}288 * @return {string[]} 289 289 */ 290 290 settings: function() { … … 407 407 * @param {Placement} placement 408 408 * @param {Element|jQuery} [placement.container] - This param will be empty if there was no element matching the selector. 409 * @param {string| object|boolean} placement.addedContent - Rendered HTML content, a data object for JS templates to render, or false if no render.410 * @param { object} [placement.context] - Optional context information about the container.409 * @param {string|Object|boolean} placement.addedContent - Rendered HTML content, a data object for JS templates to render, or false if no render. 410 * @param {Object} [placement.context] - Optional context information about the container. 411 411 * @return {boolean} Whether the rendering was successful and the fallback was not invoked. 412 412 */ … … 603 603 * @since 4.5.0 604 604 * 605 * @param { object} args605 * @param {Object} args 606 606 * @param {Partial} args.partial 607 607 * @param {jQuery|Element} [args.container] 608 608 * @param {Node} [args.startNode] 609 609 * @param {Node} [args.endNode] 610 * @param { object} [args.context]610 * @param {Object} [args.context] 611 611 * @param {string} [args.addedContent] 612 612 * @param {jQuery|DocumentFragment} [args.removedNodes] … … 646 646 * @see wp.customize.previewer.query() 647 647 * 648 * @return { object}648 * @return {Object} 649 649 */ 650 650 self.getCustomizeQuery = function() { -
trunk/src/js/_enqueues/wp/customize/widgets.js
r48461 r48650 460 460 * @param {jQuery.Event} e 461 461 * @param {jQuery} widget 462 * @param { String} newForm462 * @param {string} newForm 463 463 */ 464 464 rss: function( e, widget, newForm ) { … … 969 969 * @since 4.1.0 970 970 * 971 * @param { Boolean} active971 * @param {boolean} active 972 972 * @param {Object} args 973 973 * @param {function} args.completeCallback … … 1076 1076 * 1077 1077 * @param {jQuery|Element} input 1078 * @return {string|boolean| array|*}1078 * @return {string|boolean|Array|*} 1079 1079 * @private 1080 1080 */ … … 1096 1096 * 1097 1097 * @param {jQuery|Element} input 1098 * @param {string|boolean| array|*} state1098 * @param {string|boolean|Array|*} state 1099 1099 * @private 1100 1100 */ … … 1144 1144 * along with the new widget control form to render. 1145 1145 * 1146 * @param { object} [args]1146 * @param {Object} [args] 1147 1147 * @param {Object|null} [args.instance=null] When the model changes, the instance is sent here; otherwise, the inputs from the form are used 1148 1148 * @param {Function|null} [args.complete=null] Function which is called when the request finishes. Context is bound to the control. First argument is any error. Following arguments are for success. 1149 * @param { Boolean} [args.ignoreActiveElement=false] Whether or not updating a field will be deferred if focus is still on the element.1149 * @param {boolean} [args.ignoreActiveElement=false] Whether or not updating a field will be deferred if focus is still on the element. 1150 1150 */ 1151 1151 updateWidget: function( args ) { … … 1399 1399 * Respond to change in the expanded state. 1400 1400 * 1401 * @param { Boolean} expanded1401 * @param {boolean} expanded 1402 1402 * @param {Object} args merged on top of this.defaultActiveArguments 1403 1403 */ … … 1499 1499 * Get the position (index) of the widget in the containing sidebar 1500 1500 * 1501 * @return { Number}1501 * @return {number} 1502 1502 */ 1503 1503 getWidgetSidebarPosition: function() { … … 1531 1531 * @private 1532 1532 * 1533 * @param { Number} offset 1|-11533 * @param {number} offset 1|-1 1534 1534 */ 1535 1535 _moveWidgetByOne: function( offset ) { … … 1550 1550 * Toggle visibility of the widget move area 1551 1551 * 1552 * @param { Boolean} [showOrHide]1552 * @param {boolean} [showOrHide] 1553 1553 */ 1554 1554 toggleWidgetMoveArea: function( showOrHide ) { … … 2008 2008 * Enable/disable the reordering UI 2009 2009 * 2010 * @param { Boolean} showOrHide to enable/disable reordering2010 * @param {boolean} showOrHide to enable/disable reordering 2011 2011 * 2012 2012 * @todo We should have a reordering state instead and rename this to onChangeReordering … … 2066 2066 /** 2067 2067 * @param {string} widgetId or an id_base for adding a previously non-existing widget. 2068 * @return { object|false} widget_form control instance, or false on error.2068 * @return {Object|false} widget_form control instance, or false on error. 2069 2069 */ 2070 2070 addWidget: function( widgetId ) { … … 2247 2247 * Given a widget control, find the sidebar widgets control that contains it. 2248 2248 * @param {string} widgetId 2249 * @return { object|null}2249 * @return {Object|null} 2250 2250 */ 2251 2251 api.Widgets.getSidebarWidgetControlContainingWidget = function( widgetId ) { … … 2266 2266 * 2267 2267 * @param {string} widgetId 2268 * @return { object|null}2268 * @return {Object|null} 2269 2269 */ 2270 2270 api.Widgets.getWidgetFormControlForWidget = function( widgetId ) { … … 2334 2334 2335 2335 /** 2336 * @param { String} widgetId2336 * @param {string} widgetId 2337 2337 * @return {Object} 2338 2338 */ … … 2356 2356 2357 2357 /** 2358 * @param { String} widgetId2359 * @return { String} settingId2358 * @param {string} widgetId 2359 * @return {string} settingId 2360 2360 */ 2361 2361 function widgetIdToSettingId( widgetId ) { -
trunk/src/js/_enqueues/wp/editor/base.js
r47122 r48650 474 474 * to run after the markers are added. 475 475 * 476 * @param { object} $textarea TinyMCE's textarea wrapped as a DomQuery object476 * @param {Object} $textarea TinyMCE's textarea wrapped as a DomQuery object 477 477 */ 478 478 function addHTMLBookmarkInTextAreaContent( $textarea ) { … … 562 562 * When removing selection markers an empty `<p>` may be left behind, remove it. 563 563 * 564 * @param { object} $marker The marker to be removed from the editor DOM, wrapped in an instnce of `editor.$`564 * @param {Object} $marker The marker to be removed from the editor DOM, wrapped in an instnce of `editor.$` 565 565 */ 566 566 function removeSelectionMarker( $marker ) { … … 1133 1133 * @memberof switchEditors 1134 1134 * 1135 * @param { String} html The content from the visual editor.1136 * @return { String} the filtered content.1135 * @param {string} html The content from the visual editor. 1136 * @return {string} the filtered content. 1137 1137 */ 1138 1138 function pre_wpautop( html ) { … … 1159 1159 * @memberof switchEditors 1160 1160 * 1161 * @param { String} text The content from the text editor.1162 * @return { String} filtered content.1161 * @param {string} text The content from the text editor. 1162 * @return {string} filtered content. 1163 1163 */ 1164 1164 function wpautop( text ) { … … 1226 1226 * @param {string} id The HTML id of the textarea that is used for the editor. 1227 1227 * Has to be jQuery compliant. No brackets, special chars, etc. 1228 * @param { object} settings Example:1228 * @param {Object} settings Example: 1229 1229 * settings = { 1230 1230 * // See https://www.tinymce.com/docs/configure/integration-and-setup/. -
trunk/src/js/_enqueues/wp/editor/dfw.js
r47122 r48650 205 205 * Gets the offset of the editor. 206 206 * 207 * @return { Number|Boolean} Returns the offset of the editor207 * @return {number|boolean} Returns the offset of the editor 208 208 * or false if there is no offset height. 209 209 */ -
trunk/src/js/_enqueues/wp/mce-view.js
r47122 r48650 47 47 * Registers a new view type. 48 48 * 49 * @param { String} type The view type.49 * @param {string} type The view type. 50 50 * @param {Object} extend An object to extend wp.mce.View.prototype with. 51 51 */ … … 57 57 * Unregisters a view type. 58 58 * 59 * @param { String} type The view type.59 * @param {string} type The view type. 60 60 */ 61 61 unregister: function( type ) { … … 66 66 * Returns the settings of a view type. 67 67 * 68 * @param { String} type The view type.68 * @param {string} type The view type. 69 69 * 70 70 * @return {Function} The view constructor. … … 89 89 * and creates a new instance for every match. 90 90 * 91 * @param { String} content The string to scan.91 * @param {string} content The string to scan. 92 92 * @param {tinymce.Editor} editor The editor. 93 93 * 94 * @return { String} The string with markers.94 * @return {string} The string with markers. 95 95 */ 96 96 setMarkers: function( content, editor ) { … … 150 150 * Create a view instance. 151 151 * 152 * @param { String} type The view type.153 * @param { String} text The textual representation of the view.152 * @param {string} type The view type. 153 * @param {string} text The textual representation of the view. 154 154 * @param {Object} options Options. 155 * @param { Boolean} force Recreate the instance. Optional.155 * @param {boolean} force Recreate the instance. Optional. 156 156 * 157 157 * @return {wp.mce.View} The view instance. … … 191 191 * Get a view instance. 192 192 * 193 * @param {( String|HTMLElement)} object The textual representation of the view or the view node.193 * @param {(string|HTMLElement)} object The textual representation of the view or the view node. 194 194 * 195 195 * @return {wp.mce.View} The view instance or undefined. … … 208 208 * @param {HTMLElement} node The view node. 209 209 * 210 * @return { String} The textual representation of the view.210 * @return {string} The textual representation of the view. 211 211 */ 212 212 getText: function( node ) { … … 217 217 * Renders all view nodes that are not yet rendered. 218 218 * 219 * @param { Boolean} force Rerender all view nodes.219 * @param {boolean} force Rerender all view nodes. 220 220 */ 221 221 render: function( force ) { … … 228 228 * Update the text of a given view node. 229 229 * 230 * @param { String} text The new text.230 * @param {string} text The new text. 231 231 * @param {tinymce.Editor} editor The TinyMCE editor instance the view node is in. 232 232 * @param {HTMLElement} node The view node to update. 233 * @param { Boolean} force Recreate the instance. Optional.233 * @param {boolean} force Recreate the instance. Optional. 234 234 */ 235 235 update: function( text, editor, node, force ) { … … 318 318 * Renders all view nodes tied to this view instance that are not yet rendered. 319 319 * 320 * @param { String} content The content to render. Optional.321 * @param { Boolean} force Rerender all view nodes tied to this view instance. Optional.320 * @param {string} content The content to render. Optional. 321 * @param {boolean} force Rerender all view nodes tied to this view instance. Optional. 322 322 */ 323 323 render: function( content, force ) { … … 386 386 * 387 387 * @param {Function} callback A callback. 388 * @param { Boolean} rendered Get (un)rendered view nodes. Optional.388 * @param {boolean} rendered Get (un)rendered view nodes. Optional. 389 389 */ 390 390 getNodes: function( callback, rendered ) { … … 474 474 * @param {*} content The content to set. 475 475 * @param {Function} callback A callback. Optional. 476 * @param { Boolean} rendered Only set for (un)rendered nodes. Optional.476 * @param {boolean} rendered Only set for (un)rendered nodes. Optional. 477 477 */ 478 478 setContent: function( content, callback, rendered ) { … … 503 503 * Sets the content in an iframe for all view nodes tied to this view instance. 504 504 * 505 * @param { String} head HTML string to be added to the head of the document.506 * @param { String} body HTML string to be added to the body of the document.505 * @param {string} head HTML string to be added to the head of the document. 506 * @param {string} body HTML string to be added to the body of the document. 507 507 * @param {Function} callback A callback. Optional. 508 * @param { Boolean} rendered Only set for (un)rendered nodes. Optional.508 * @param {boolean} rendered Only set for (un)rendered nodes. Optional. 509 509 */ 510 510 setIframes: function( head, body, callback, rendered ) { … … 699 699 * Sets an error for all view nodes tied to this view instance. 700 700 * 701 * @param { String} message The error message to set.702 * @param { String} dashicon A dashicon ID. Optional. {@link https://developer.wordpress.org/resource/dashicons/}701 * @param {string} message The error message to set. 702 * @param {string} dashicon A dashicon ID. Optional. {@link https://developer.wordpress.org/resource/dashicons/} 703 703 */ 704 704 setError: function( message, dashicon ) { … … 714 714 * Tries to find a text match in a given string. 715 715 * 716 * @param { String} content The string to scan.716 * @param {string} content The string to scan. 717 717 * 718 718 * @return {Object} … … 735 735 * Update the text of a given view node. 736 736 * 737 * @param { String} text The new text.737 * @param {string} text The new text. 738 738 * @param {tinymce.Editor} editor The TinyMCE editor instance the view node is in. 739 739 * @param {HTMLElement} node The view node to update. 740 * @param { Boolean} force Recreate the instance. Optional.740 * @param {boolean} force Recreate the instance. Optional. 741 741 */ 742 742 update: function( text, editor, node, force ) { -
trunk/src/js/_enqueues/wp/media/editor.js
r48396 r48650 20 20 * but has a default value, set it. 21 21 * 22 * @param { object} attrs Map of props from a shortcode or settings.22 * @param {Object} attrs Map of props from a shortcode or settings. 23 23 * @param {string} key The key within the passed map to check for a value. 24 24 * @return {mixed|undefined} The original or coerced value of key within attrs. -
trunk/src/js/_enqueues/wp/media/models.js
r48110 r48650 18 18 * @namespace 19 19 * 20 * @param { object} attributes The properties passed to the main media controller.20 * @param {Object} attributes The properties passed to the main media controller. 21 21 * @return {wp.media.view.MediaFrame} A media workflow. 22 22 */ … … 184 184 * Useful for filenames. 185 185 * 186 * @param { String} string187 * @param { Number} [length=30]188 * @param { String} [replacement=…]189 * @return { String} The string, unless length is greater than string.length.186 * @param {string} string 187 * @param {number} [length=30] 188 * @param {string} [replacement=…] 189 * @return {string} The string, unless length is greater than string.length. 190 190 */ 191 191 truncate: function( string, length, replacement ) { … … 210 210 * 211 211 * @static 212 * @param { String} id A string used to identify a model.212 * @param {string} id A string used to identify a model. 213 213 * @return {wp.media.model.Attachment} 214 214 */ … … 230 230 * Shorthand for creating a new Attachments Query. 231 231 * 232 * @param { object} [props]232 * @param {Object} [props] 233 233 * @return {wp.media.model.Attachments} 234 234 */ -
trunk/src/js/_enqueues/wp/media/views.js
r47122 r48650 49 49 * 50 50 * @param {string} selector 51 * @param { Number} sensitivity51 * @param {number} sensitivity 52 52 * @return {Promise} 53 53 */ -
trunk/src/js/_enqueues/wp/theme-plugin-editor.js
r48346 r48650 28 28 * 29 29 * @param {jQuery} form - Form element. 30 * @param { object} settings - Settings.31 * @param { object|boolean} settings.codeEditor - Code editor settings (or `false` if syntax highlighting is disabled).30 * @param {Object} settings - Settings. 31 * @param {Object|boolean} settings.codeEditor - Code editor settings (or `false` if syntax highlighting is disabled). 32 32 * @return {void} 33 33 */ … … 118 118 * 119 119 * @since 4.9.0 120 * @param { object} event jQuery event object.120 * @param {Object} event jQuery event object. 121 121 * @return {void} 122 122 */ … … 255 255 * @since 4.9.0 256 256 * 257 * @param { object} notice - Notice.257 * @param {Object} notice - Notice. 258 258 * @param {string} notice.code - Code. 259 259 * @param {string} notice.type - Type. -
trunk/src/js/_enqueues/wp/theme.js
r48106 r48650 1429 1429 * 1430 1430 * @param {string} url - URL to navigate to. 1431 * @param { object} state - State.1431 * @param {Object} state - State. 1432 1432 * @return {void} 1433 1433 */ … … 1842 1842 * Get the checked filters. 1843 1843 * 1844 * @return { array} of tags or false1844 * @return {Array} of tags or false 1845 1845 */ 1846 1846 filtersChecked: function() { -
trunk/src/js/_enqueues/wp/updates.js
r48589 r48650 151 151 * @since 4.6.0 152 152 * 153 * @param { object} data153 * @param {Object} data 154 154 * @param {*=} data.selector Optional. Selector of an element to be replaced with the admin notice. 155 155 * @param {string=} data.id Optional. Unique id that will be used as the notice's id attribute. … … 195 195 * 196 196 * @param {string} action The type of Ajax request ('update-plugin', 'install-theme', etc). 197 * @param { object} data Data that needs to be passed to the ajax callback.197 * @param {Object} data Data that needs to be passed to the ajax callback. 198 198 * @return {$.promise} A jQuery promise that represents the request, 199 199 * decorated with an abort() method. … … 244 244 * @since 4.6.0 245 245 * 246 * @param { object} response247 * @param { array=} response.debug Optional. Debug information.246 * @param {Object} response 247 * @param {Array=} response.debug Optional. Debug information. 248 248 * @param {string=} response.errorCode Optional. Error code for an error that occurred. 249 249 */ … … 356 356 * @since 4.6.0 More accurately named `updatePlugin`. 357 357 * 358 * @param { object} args Arguments.358 * @param {Object} args Arguments. 359 359 * @param {string} args.plugin Plugin basename. 360 360 * @param {string} args.slug Plugin slug. … … 413 413 * @since 5.5.0 Auto-update "time to next update" text cleared. 414 414 * 415 * @param { object} response Response from the server.415 * @param {Object} response Response from the server. 416 416 * @param {string} response.slug Slug of the plugin to be updated. 417 417 * @param {string} response.plugin Basename of the plugin to be updated. … … 467 467 * @since 4.6.0 More accurately named `updatePluginError`. 468 468 * 469 * @param { object} response Response from the server.469 * @param {Object} response Response from the server. 470 470 * @param {string} response.slug Slug of the plugin to be updated. 471 471 * @param {string} response.plugin Basename of the plugin to be updated. … … 563 563 * @since 4.6.0 564 564 * 565 * @param { object} args Arguments.565 * @param {Object} args Arguments. 566 566 * @param {string} args.slug Plugin identifier in the WordPress.org Plugin repository. 567 567 * @param {installPluginSuccess=} args.success Optional. Success callback. Default: wp.updates.installPluginSuccess … … 614 614 * @since 4.6.0 615 615 * 616 * @param { object} response Response from the server.616 * @param {Object} response Response from the server. 617 617 * @param {string} response.slug Slug of the installed plugin. 618 618 * @param {string} response.pluginName Name of the installed plugin. … … 679 679 * @since 4.6.0 680 680 * 681 * @param { object} response Response from the server.681 * @param {Object} response Response from the server. 682 682 * @param {string} response.slug Slug of the plugin to be installed. 683 683 * @param {string=} response.pluginName Optional. Name of the plugin to be installed. … … 740 740 * @since 4.6.0 741 741 * 742 * @param { object} response Response from the server.742 * @param {Object} response Response from the server. 743 743 * @param {string} response.slug Slug of the installed plugin. 744 744 * @param {string} response.pluginName Name of the installed plugin. … … 779 779 * @since 4.6.0 780 780 * 781 * @param { object} response Response from the server.781 * @param {Object} response Response from the server. 782 782 * @param {string} response.slug Slug of the plugin to be installed. 783 783 * @param {string=} response.pluginName Optional. Name of the plugin to be installed. … … 830 830 * @since 4.6.0 831 831 * 832 * @param { object} args Arguments.832 * @param {Object} args Arguments. 833 833 * @param {string} args.plugin Basename of the plugin to be deleted. 834 834 * @param {string} args.slug Slug of the plugin to be deleted. … … 957 957 * @since 4.6.0 958 958 * 959 * @param { object} response Response from the server.959 * @param {Object} response Response from the server. 960 960 * @param {string} response.slug Slug of the plugin to be deleted. 961 961 * @param {string} response.plugin Base name of the plugin to be deleted … … 1014 1014 * @since 4.6.0 1015 1015 * 1016 * @param { object} args Arguments.1016 * @param {Object} args Arguments. 1017 1017 * @param {string} args.slug Theme stylesheet. 1018 1018 * @param {updateThemeSuccess=} args.success Optional. Success callback. Default: wp.updates.updateThemeSuccess … … 1070 1070 * @since 5.5.0 Auto-update "time to next update" text cleared. 1071 1071 * 1072 * @param { object} response1072 * @param {Object} response 1073 1073 * @param {string} response.slug Slug of the theme to be updated. 1074 * @param { object} response.theme Updated theme.1074 * @param {Object} response.theme Updated theme. 1075 1075 * @param {string} response.oldVersion Old version of the theme. 1076 1076 * @param {string} response.newVersion New version of the theme. … … 1135 1135 * @since 4.6.0 1136 1136 * 1137 * @param { object} response Response from the server.1137 * @param {Object} response Response from the server. 1138 1138 * @param {string} response.slug Slug of the theme to be updated. 1139 1139 * @param {string} response.errorCode Error code for the error that occurred. … … 1185 1185 * @since 4.6.0 1186 1186 * 1187 * @param { object} args1187 * @param {Object} args 1188 1188 * @param {string} args.slug Theme stylesheet. 1189 1189 * @param {installThemeSuccess=} args.success Optional. Success callback. Default: wp.updates.installThemeSuccess … … 1232 1232 * @since 4.6.0 1233 1233 * 1234 * @param { object} response Response from the server.1234 * @param {Object} response Response from the server. 1235 1235 * @param {string} response.slug Slug of the theme to be installed. 1236 1236 * @param {string} response.customizeUrl URL to the Customizer for the just installed theme. … … 1311 1311 * @since 4.6.0 1312 1312 * 1313 * @param { object} response Response from the server.1313 * @param {Object} response Response from the server. 1314 1314 * @param {string} response.slug Slug of the theme to be installed. 1315 1315 * @param {string} response.errorCode Error code for the error that occurred. … … 1377 1377 * @since 4.6.0 1378 1378 * 1379 * @param { object} args1379 * @param {Object} args 1380 1380 * @param {string} args.slug Theme stylesheet. 1381 1381 * @param {deleteThemeSuccess=} args.success Optional. Success callback. Default: wp.updates.deleteThemeSuccess … … 1419 1419 * @since 4.6.0 1420 1420 * 1421 * @param { object} response Response from the server.1421 * @param {Object} response Response from the server. 1422 1422 * @param {string} response.slug Slug of the theme that was deleted. 1423 1423 */ … … 1477 1477 * @since 4.6.0 1478 1478 * 1479 * @param { object} response Response from the server.1479 * @param {Object} response Response from the server. 1480 1480 * @param {string} response.slug Slug of the theme to be deleted. 1481 1481 * @param {string} response.errorCode Error code for the error that occurred. … … 1532 1532 * @private 1533 1533 * 1534 * @param { object} data Ajax payload.1534 * @param {Object} data Ajax payload. 1535 1535 * @param {string} action The type of request to perform. 1536 * @return { object} The Ajax payload with the appropriate callbacks.1536 * @return {Object} The Ajax payload with the appropriate callbacks. 1537 1537 */ 1538 1538 wp.updates._addCallbacks = function( data, action ) { … … 1726 1726 * @since 4.2.0 1727 1727 * 1728 * @param { object} response Ajax response.1728 * @param {Object} response Ajax response. 1729 1729 * @param {string} action The type of request to perform. 1730 1730 */ … … 1754 1754 * @since 4.6.0 1755 1755 * 1756 * @param { object} response Response from the server.1756 * @param {Object} response Response from the server. 1757 1757 * @param {string} response.errorCode Error code for the error that occurred. 1758 1758 * @param {string} response.errorMessage The error that occurred. … … 1774 1774 * If the response deems to be invalid, an admin notice is being displayed. 1775 1775 * 1776 * @param {( object|string)} response Response from the server.1776 * @param {(Object|string)} response Response from the server. 1777 1777 * @param {function=} response.always Optional. Callback for when the Deferred is resolved or rejected. 1778 1778 * @param {string=} response.statusText Optional. Status message corresponding to the status code. -
trunk/src/js/_enqueues/wp/util.js
r48110 r48650 57 57 * Sends a POST request to WordPress. 58 58 * 59 * @param {(string| object)} action The slug of the action to fire in WordPress or options passed59 * @param {(string|Object)} action The slug of the action to fire in WordPress or options passed 60 60 * to jQuery.ajax. 61 * @param { object=} data Optional. The data to populate $_POST with.61 * @param {Object=} data Optional. The data to populate $_POST with. 62 62 * @return {$.promise} A jQuery promise that represents the request, 63 63 * decorated with an abort() method. … … 74 74 * Sends a POST request to WordPress. 75 75 * 76 * @param {(string| object)} action The slug of the action to fire in WordPress or options passed76 * @param {(string|Object)} action The slug of the action to fire in WordPress or options passed 77 77 * to jQuery.ajax. 78 * @param { object=} options Optional. The options passed to jQuery.ajax.78 * @param {Object=} options Optional. The options passed to jQuery.ajax. 79 79 * @return {$.promise} A jQuery promise that represents the request, 80 80 * decorated with an abort() method. -
trunk/src/js/_enqueues/wp/utils/word-count.js
r47122 r48650 39 39 * @param {Object} settings.l10n Optional. Localization object containing specific 40 40 * configuration for the current localization. 41 * @param { String} settings.l10n.type Optional. Method of finding words to count.41 * @param {string} settings.l10n.type Optional. Method of finding words to count. 42 42 * @param {Array} settings.l10n.shortcodes Optional. Array of shortcodes that should be removed 43 43 * from the text. … … 149 149 * @memberof wp.utils.wordcounter 150 150 * 151 * @param { String} text Text to count elements in.152 * @param { String} type Optional. Specify type to use.153 * 154 * @return { Number} The number of items counted.151 * @param {string} text Text to count elements in. 152 * @param {string} type Optional. Specify type to use. 153 * 154 * @return {number} The number of items counted. 155 155 */ 156 156 WordCounter.prototype.count = function( text, type ) { -
trunk/src/js/_enqueues/wp/widgets/custom-html.js
r46800 r48650 414 414 * @alias wp.customHtmlWidgets.init 415 415 * 416 * @param { object} settings - Options for code editor, exported from PHP.416 * @param {Object} settings - Options for code editor, exported from PHP. 417 417 * 418 418 * @return {void} -
trunk/src/js/_enqueues/wp/widgets/media.js
r46800 r48650 101 101 * @since 4.9.0 102 102 * 103 * @param { object} options - Options.103 * @param {Object} options - Options. 104 104 * @return {void} 105 105 */ -
trunk/src/js/media/controllers/library.js
r47030 r48650 192 192 * 193 193 * @param {wp.media.model.Attachment} attachment 194 * @return { Boolean}194 * @return {boolean} 195 195 */ 196 196 isImageAttachment: function( attachment ) { … … 209 209 * 210 210 * @param {wp.media.model.Attachment} attachment 211 * @return { Boolean}211 * @return {boolean} 212 212 */ 213 213 canEmbed: function( attachment ) { -
trunk/src/js/media/controllers/region.js
r46800 r48650 16 16 * @class 17 17 * 18 * @param { object} options Options hash for the region.18 * @param {Object} options Options hash for the region. 19 19 * @param {string} options.id Unique identifier for the region. 20 20 * @param {Backbone.View} options.view A parent view the region exists within. -
trunk/src/js/media/models/attachments.js
r48168 r48650 88 88 * 89 89 * @param {Backbone.Model} model 90 * @param { Boolean} query90 * @param {boolean} query 91 91 */ 92 92 _changeQuery: function( model, query ) { … … 148 148 * 149 149 * @param {wp.media.model.Attachment} attachment 150 * @return { Boolean}150 * @return {boolean} 151 151 */ 152 152 validator: function( attachment ) { … … 191 191 * 192 192 * @param {wp.media.model.Attachments} attachments 193 * @param { object} [options={}]193 * @param {Object} [options={}] 194 194 * 195 195 * @fires wp.media.model.Attachments#reset … … 315 315 * server persistence by itself. 316 316 * 317 * @param { object} options317 * @param {Object} options 318 318 * @return {Promise} 319 319 */ … … 448 448 * @param {Backbone.Model} b 449 449 * @param {Object} options 450 * @return { Number} -1 if the first model should come before the second,450 * @return {number} -1 if the first model should come before the second, 451 451 * 0 if they are of the same rank and 452 452 * 1 if the first model should come after. … … 502 502 * @this wp.media.model.Attachments 503 503 * 504 * @return { Boolean}504 * @return {boolean} 505 505 */ 506 506 type: function( attachment ) { … … 529 529 * @this wp.media.model.Attachments 530 530 * 531 * @return { Boolean}531 * @return {boolean} 532 532 */ 533 533 uploadedTo: function( attachment ) { … … 545 545 * @this wp.media.model.Attachments 546 546 * 547 * @return { Boolean}547 * @return {boolean} 548 548 */ 549 549 status: function( attachment ) { -
trunk/src/js/media/models/query.js
r48110 r48650 23 23 Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{ 24 24 /** 25 * @param { array} [models=[]] Array of initial models to populate the collection.26 * @param { object} [options={}]25 * @param {Array} [models=[]] Array of initial models to populate the collection. 26 * @param {Object} [options={}] 27 27 */ 28 28 initialize: function( models, options ) { … … 95 95 * Fetch more attachments from the server for the collection. 96 96 * 97 * @param { object} [options={}]97 * @param {Object} [options={}] 98 98 * @return {Promise} 99 99 */ … … 123 123 * Overrides wp.media.model.Attachments.sync 124 124 * 125 * @param { String} method125 * @param {string} method 126 126 * @param {Backbone.Model} model 127 127 * @param {Object} [options={}] -
trunk/src/js/media/views/attachment.js
r48110 r48650 287 287 }, 288 288 /** 289 * @return {unresolved| Boolean}289 * @return {unresolved|boolean} 290 290 */ 291 291 selected: function() { -
trunk/src/js/media/views/focus-manager.js
r47122 r48650 20 20 * Initializes the Focus Manager. 21 21 * 22 * @param { object} options The Focus Manager options.22 * @param {Object} options The Focus Manager options. 23 23 * 24 24 * @since 5.3.0 … … 36 36 * @since 5.3.0 37 37 * 38 * @param { object} event jQuery event object.38 * @param {Object} event jQuery event object. 39 39 * 40 40 * @return {void} … … 55 55 * @since 5.3.0 56 56 * 57 * @return { object} A jQuery collection of tabbable elements.57 * @return {Object} A jQuery collection of tabbable elements. 58 58 */ 59 59 getTabbables: function() { … … 115 115 * @since 5.2.3 116 116 * 117 * @param { object} visibleElement The jQuery object representing the element that should not be hidden.117 * @param {Object} visibleElement The jQuery object representing the element that should not be hidden. 118 118 * 119 119 * @return {void} … … 172 172 * @since 5.2.3 173 173 * 174 * @param { object} element The DOM element that should be checked.174 * @param {Object} element The DOM element that should be checked. 175 175 * 176 176 * @return {boolean} Whether the element should not be hidden from assistive technologies. … … 219 219 * @since 5.3.0 220 220 * 221 * @param { object} event jQuery event object.221 * @param {Object} event jQuery event object. 222 222 * 223 223 * @return {void} … … 243 243 * @since 5.3.0 244 244 * 245 * @param { object} event jQuery event object.245 * @param {Object} event jQuery event object. 246 246 * 247 247 * @return {void} … … 279 279 * @since 5.3.0 280 280 * 281 * @param { object} event jQuery event object.281 * @param {Object} event jQuery event object. 282 282 * 283 283 * @return {void} … … 330 330 * @since 5.3.0 331 331 * 332 * @param { object} tab The tab DOM element.332 * @param {Object} tab The tab DOM element. 333 333 * 334 334 * @return {void} -
trunk/src/js/media/views/uploader/editor.js
r48110 r48650 65 65 * Check browser support for drag'n'drop. 66 66 * 67 * @return { Boolean}67 * @return {boolean} 68 68 */ 69 69 browserSupport: function() {
Note: See TracChangeset
for help on using the changeset viewer.