Changeset 63600
- Timestamp:
- 09/11/2026 10:50:50 AM (10 hours ago)
- Location:
- trunk
- Files:
-
- 60 edited
-
.eslintrc-jsdoc.js (modified) (2 diffs)
-
src/js/_enqueues/admin/application-passwords.js (modified) (1 diff)
-
src/js/_enqueues/admin/common.js (modified) (4 diffs)
-
src/js/_enqueues/admin/custom-background.js (modified) (1 diff)
-
src/js/_enqueues/admin/edit-comments.js (modified) (9 diffs)
-
src/js/_enqueues/admin/inline-edit-post.js (modified) (1 diff)
-
src/js/_enqueues/admin/inline-edit-tax.js (modified) (3 diffs)
-
src/js/_enqueues/admin/media.js (modified) (1 diff)
-
src/js/_enqueues/admin/postbox.js (modified) (1 diff)
-
src/js/_enqueues/admin/tags-box.js (modified) (2 diffs)
-
src/js/_enqueues/admin/widgets.js (modified) (1 diff)
-
src/js/_enqueues/lib/accordion.js (modified) (2 diffs)
-
src/js/_enqueues/lib/admin-bar.js (modified) (5 diffs)
-
src/js/_enqueues/lib/auth-check.js (modified) (2 diffs)
-
src/js/_enqueues/lib/codemirror/htmlhint-kses.js (modified) (1 diff)
-
src/js/_enqueues/lib/codemirror/javascript-lint.js (modified) (3 diffs)
-
src/js/_enqueues/lib/color-picker.js (modified) (2 diffs)
-
src/js/_enqueues/lib/cookies.js (modified) (1 diff)
-
src/js/_enqueues/lib/emoji-loader.js (modified) (5 diffs)
-
src/js/_enqueues/lib/image-edit.js (modified) (6 diffs)
-
src/js/_enqueues/lib/lists.js (modified) (1 diff)
-
src/js/_enqueues/lib/pointer.js (modified) (1 diff)
-
src/js/_enqueues/lib/quicktags.js (modified) (1 diff)
-
src/js/_enqueues/lib/user-suggest.js (modified) (1 diff)
-
src/js/_enqueues/wp/api.js (modified) (3 diffs)
-
src/js/_enqueues/wp/backbone.js (modified) (3 diffs)
-
src/js/_enqueues/wp/code-editor.js (modified) (13 diffs)
-
src/js/_enqueues/wp/custom-header.js (modified) (1 diff)
-
src/js/_enqueues/wp/customize/base.js (modified) (1 diff)
-
src/js/_enqueues/wp/customize/controls.js (modified) (1 diff)
-
src/js/_enqueues/wp/customize/loader.js (modified) (1 diff)
-
src/js/_enqueues/wp/dashboard.js (modified) (4 diffs)
-
src/js/_enqueues/wp/editor/base.js (modified) (9 diffs)
-
src/js/_enqueues/wp/editor/dfw.js (modified) (4 diffs)
-
src/js/_enqueues/wp/embed.js (modified) (1 diff)
-
src/js/_enqueues/wp/emoji.js (modified) (2 diffs)
-
src/js/_enqueues/wp/heartbeat.js (modified) (1 diff)
-
src/js/_enqueues/wp/media/audiovideo.js (modified) (1 diff)
-
src/js/_enqueues/wp/media/editor.js (modified) (11 diffs)
-
src/js/_enqueues/wp/password-strength-meter.js (modified) (1 diff)
-
src/js/_enqueues/wp/sanitize.js (modified) (2 diffs)
-
src/js/_enqueues/wp/theme-plugin-editor.js (modified) (7 diffs)
-
src/js/_enqueues/wp/theme.js (modified) (1 diff)
-
src/js/_enqueues/wp/updates.js (modified) (1 diff)
-
src/js/_enqueues/wp/utils/word-count.js (modified) (1 diff)
-
src/js/_enqueues/wp/widgets/custom-html.js (modified) (7 diffs)
-
src/js/_enqueues/wp/widgets/media-audio.js (modified) (1 diff)
-
src/js/_enqueues/wp/widgets/media-gallery.js (modified) (2 diffs)
-
src/js/_enqueues/wp/widgets/media-image.js (modified) (1 diff)
-
src/js/_enqueues/wp/widgets/media-video.js (modified) (1 diff)
-
src/js/_enqueues/wp/widgets/media.js (modified) (16 diffs)
-
src/js/_enqueues/wp/widgets/text.js (modified) (3 diffs)
-
src/js/media/controllers/state.js (modified) (2 diffs)
-
src/js/media/models/attachment.js (modified) (1 diff)
-
src/js/media/models/attachments.js (modified) (1 diff)
-
src/js/media/models/post-media.js (modified) (1 diff)
-
src/js/media/models/query.js (modified) (1 diff)
-
src/js/media/views/attachments/browser.js (modified) (1 diff)
-
src/js/media/views/focus-manager.js (modified) (1 diff)
-
tools/gutenberg/copy.js (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.eslintrc-jsdoc.js
r63598 r63600 37 37 }, 38 38 rules: { 39 'jsdoc/check-alignment': 'error', 40 'jsdoc/check-indentation': [ 'error', { 41 excludeTags: [ 42 'deprecated', 43 'example', 44 'param', 45 'property', 46 'return', 47 'since', 48 'todo', 49 ], 50 } ], 51 'jsdoc/check-line-alignment': [ 'error', 'always', { 52 tags: [ 'param', 'property' ], 53 } ], 39 54 'jsdoc/check-param-names': 'error', 40 55 'jsdoc/check-syntax': 'error', … … 49 64 'jsdoc/check-types': 'error', 50 65 'jsdoc/require-description': 'error', 66 'jsdoc/require-hyphen-before-param-description': [ 'error', 'never' ], 51 67 'jsdoc/require-jsdoc': 'error', 52 68 'jsdoc/require-param': [ 'error', { -
trunk/src/js/_enqueues/admin/application-passwords.js
r63514 r63600 173 173 * @since 5.6.0 174 174 * 175 * @param {jqXHR} xhrThe XHR object from the ajax call.176 * @param {string} textStatus The string categorizing the ajax request's status.175 * @param {jqXHR} xhr The XHR object from the ajax call. 176 * @param {string} textStatus The string categorizing the ajax request's status. 177 177 * @param {string} errorThrown The HTTP status error text. 178 178 */ -
trunk/src/js/_enqueues/admin/common.js
r63406 r63600 3 3 */ 4 4 5 /* global setUserSetting, ajaxurl, alert, confirm, pagenow */ 6 /* global columns, screenMeta */ 7 8 /** 9 * Adds common WordPress functionality to the window. 10 * 11 * @param {JQueryStatic} $ The jQuery object. 12 * @param {Object} window The window object. 13 * @param {*} undefined Unused. 5 /* global setUserSetting, ajaxurl, alert, confirm, pagenow, columns, screenMeta */ 6 7 /** 8 * Adds common WordPress functionality to the window. 9 * 10 * @param {JQueryStatic} $ The jQuery object. 11 * @param {Object} window The window object. 12 * @param {*} undefined Unused. 14 13 */ 15 14 ( function( $, window, undefined ) { … … 569 568 * 570 569 * @type {{element: null, toggles: null, page: null, init: screenMeta.init, 571 * toggleEvent: screenMeta.toggleEvent, open: screenMeta.open,572 * close: screenMeta.close}}570 * toggleEvent: screenMeta.toggleEvent, open: screenMeta.open, 571 * close: screenMeta.close}} 573 572 * 574 573 * @return {void} … … 981 980 /* 982 981 * Show the sub instead of following the link if: 983 * - the submenu is not open.984 * - the submenu is not shown inline or the menu is not folded.982 * - the submenu is not open. 983 * - the submenu is not shown inline or the menu is not folded. 985 984 */ 986 985 if ( ! $menuItem.hasClass( 'opensub' ) && ( ! $menuItem.hasClass( 'wp-menu-open' ) || $menuItem.width() < 40 ) ) { … … 1486 1485 * 1487 1486 * @return {void} 1488 */1487 */ 1489 1488 $('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){ 1490 1489 if ( e.target.scrollIntoViewIfNeeded ) -
trunk/src/js/_enqueues/admin/custom-background.js
r63406 r63600 125 125 * 126 126 * @return {void} 127 */127 */ 128 128 frame.on( 'select', function() { 129 129 // Grab the selected attachment. -
trunk/src/js/_enqueues/admin/edit-comments.js
r63514 r63600 43 43 * 44 44 * @param {jQuery} el The jQuery element to update. 45 * @param {number} n Number to be put in the element.45 * @param {number} n Number to be put in the element. 46 46 * 47 47 * @return {void} … … 69 69 * @access private 70 70 * 71 * @param {number} diff The amount to lower or raise the approved count with.71 * @param {number} diff The amount to lower or raise the approved count with. 72 72 * @param {number} commentPostId The ID of the post to be updated. 73 73 * … … 123 123 * @param {string} selector The jQuery selector for elements to update a count 124 124 * for. 125 * @param {number} diff The amount to lower or raise the count with.125 * @param {number} diff The amount to lower or raise the count with. 126 126 * 127 127 * @return {void} … … 232 232 * @access private 233 233 * 234 * @param {number} diff The amount to lower or raise the pending count with.234 * @param {number} diff The amount to lower or raise the pending count with. 235 235 * @param {number} commentPostId The ID of the post to be updated. 236 236 * … … 323 323 * @access private 324 324 * 325 * @param {number} totalTotal number of comments.326 * @param {number} timeUnix timestamp of response.327 * @param {boolean} setConfidentTime Whether to update the last confident time325 * @param {number} total Total number of comments. 326 * @param {number} time Unix timestamp of response. 327 * @param {boolean} setConfidentTime Whether to update the last confident time 328 328 * with the given time. 329 329 * … … 346 346 * @access private 347 347 * 348 * @param {Object} r Ajax response object.348 * @param {Object} r Ajax response object. 349 349 * @param {Object} settings Settings for the wpList object. 350 350 * … … 399 399 * @access private 400 400 * 401 * @param {Object} settings Settings for the wpList object.402 * @param {HTMLElement} list Comments table element.401 * @param {Object} settings Settings for the wpList object. 402 * @param {HTMLElement} list Comments table element. 403 403 * 404 404 * @return {Object} The settings object. … … 472 472 * @access private 473 473 * 474 * @param {Object} r Ajax response object.474 * @param {Object} r Ajax response object. 475 475 * @param {Object} settings Settings for the wpList object. 476 476 * … … 946 946 * 947 947 * @param {number} comment_id The comment ID to open an editor for. 948 * @param {number} post_id The post ID to open an editor for.949 * @param {string} action The action to perform. Either 'edit' or 'replyto'.948 * @param {number} post_id The post ID to open an editor for. 949 * @param {string} action The action to perform. Either 'edit' or 'replyto'. 950 950 * 951 951 * @return {boolean} Always false. -
trunk/src/js/_enqueues/admin/inline-edit-post.js
r63406 r63600 19 19 * @type {Object} 20 20 * 21 * @property {string} type The type of inline editor.22 * @property {string} what The prefix before the post ID.21 * @property {string} type The type of inline editor. 22 * @property {string} what The prefix before the post ID. 23 23 * 24 * @param {JQueryStatic} $The jQuery object.25 * @param {wp} wpThe WordPress global object.24 * @param {JQueryStatic} $ The jQuery object. 25 * @param {wp} wp The WordPress global object. 26 26 * 27 27 */ -
trunk/src/js/_enqueues/admin/inline-edit-tax.js
r63406 r63600 14 14 * @namespace inlineEditTax 15 15 * 16 * @property {string} type The type of inline edit we are currently on. 17 * @property {string} what The type property with a hash prefixed and a dash 18 * suffixed. 19 * 20 * @param {JQueryStatic} $ The jQuery object. 21 * @param {Object} wp The WordPress object. 16 * @property {string} type The type of inline edit we are currently on. 17 * @property {string} what The type property with a hash prefixed and a dash suffixed. 18 * 19 * @param {JQueryStatic} $ The jQuery object. 20 * @param {Object} wp The WordPress object. 22 21 */ 23 22 ( function( $, wp ) { … … 118 117 * @param {string|HTMLElement} id The ID of the term we want to quick edit or an 119 118 * element within the table row or the 120 * table row itself.119 * table row itself. 121 120 * @return {boolean} Always returns false. 122 121 */ … … 165 164 * @param {string|HTMLElement} id The ID of the term we want to quick edit or an 166 165 * element within the table row or the 167 * table row itself.166 * table row itself. 168 167 * @return {boolean} Always returns false. 169 168 */ -
trunk/src/js/_enqueues/admin/media.js
r59187 r63600 25 25 * 26 26 * @param {string} af_name The name of the affected element. 27 * @param {string} af_val The value of the affected post element.27 * @param {string} af_val The value of the affected post element. 28 28 * 29 29 * @return {boolean} Always returns false. -
trunk/src/js/_enqueues/admin/postbox.js
r63598 r63600 354 354 * @memberof postboxes 355 355 * 356 * @param {string} pageThe page we are currently on.357 * @param {Object} [args={}]The arguments for the postbox initializer.356 * @param {string} page The page we are currently on. 357 * @param {Object} [args={}] The arguments for the postbox initializer. 358 358 * @param {Function} args.pbshow A callback that is called when a postbox opens. 359 359 * @param {Function} args.pbhide A callback that is called when a postbox -
trunk/src/js/_enqueues/admin/tags-box.js
r50547 r63600 220 220 * @memberOf tagBox 221 221 * 222 * @param {Object} el The container HTML element.223 * @param {Object|boolean} a When this is an HTML element the text of that224 * element will be used for the new tag.225 * @param {number|boolean} f If this value is not passed then the tag input226 * field is focused.222 * @param {Object} el The container HTML element. 223 * @param {Object|boolean} a When this is an HTML element the text of that 224 * element will be used for the new tag. 225 * @param {number|boolean} f If this value is not passed then the tag input 226 * field is focused. 227 227 * 228 228 * @return {boolean} Always returns false. … … 288 288 * @since 2.9.0 289 289 * 290 * @param {number|string} r The response message from the Ajax call.291 * @param {string} stat The status of the Ajax request.290 * @param {number|string} r The response message from the Ajax call. 291 * @param {string} stat The status of the Ajax request. 292 292 * 293 293 * @return {void} -
trunk/src/js/_enqueues/admin/widgets.js
r63406 r63600 753 753 * 754 754 * @type {Object} 755 */755 */ 756 756 wpWidgets.l10n = wpWidgets.l10n || { 757 757 save: '', -
trunk/src/js/_enqueues/lib/accordion.js
r63514 r63600 6 6 * Use the following markup structure for accordion behavior: 7 7 * 8 * @example 9 * ```html 8 10 * <div class="accordion-container"> 9 11 * <div class="accordion-section open"> … … 23 25 * </div> 24 26 * </div> 27 * ``` 25 28 * 26 29 * Note that any appropriate tags may be used, as long as the above classes are present. -
trunk/src/js/_enqueues/lib/admin-bar.js
r63406 r63600 175 175 * 176 176 * @param {NodeList} topMenuItems All menu items. 177 * @param {Event} eventThe click event.177 * @param {Event} event The click event. 178 178 */ 179 179 function mobileHover( topMenuItems, event ) { … … 261 261 * @since 5.3.1 262 262 * 263 * @param {HTMLElement} element The HTML element.263 * @param {HTMLElement} element The HTML element. 264 264 * @param {string} className The class name. 265 265 * @return {boolean} Whether the element has the className. … … 287 287 * @since 5.3.1 288 288 * 289 * @param {HTMLElement} element The HTML element.289 * @param {HTMLElement} element The HTML element. 290 290 * @param {string} className The class name. 291 291 */ … … 316 316 * @since 5.3.1 317 317 * 318 * @param {HTMLElement} element The HTML element.318 * @param {HTMLElement} element The HTML element. 319 319 * @param {string} className The class name. 320 320 */ … … 396 396 * @since 5.3.1 397 397 * 398 * @param {HTMLElement} el Element to get parent.399 * @param {string} selector CSS selector to match.398 * @param {HTMLElement} el Element to get parent. 399 * @param {string} selector CSS selector to match. 400 400 * 401 401 * @return {HTMLElement|null} The closest matching element or null if not found. -
trunk/src/js/_enqueues/lib/auth-check.js
r63514 r63600 138 138 * 139 139 * - Shows the authentication form popup if user is not logged in. 140 * - Hides the authentication form popup if it is already visible and user is 141 * logged in. 140 * - Hides the authentication form popup if it is already visible and user is logged in. 142 141 * 143 142 * @ignore … … 145 144 * @since 3.6.0 146 145 * 147 * @param {Object} e The heartbeat-tick event that has been triggered.146 * @param {Object} e The heartbeat-tick event that has been triggered. 148 147 * @param {Object} data Response data. 149 148 */ -
trunk/src/js/_enqueues/lib/codemirror/htmlhint-kses.js
r61800 r63600 9 9 * 10 10 * @this {import('htmlhint/types').Rule} 11 * @param {import('htmlhint').HTMLParser} parser -Parser.12 * @param {import('htmlhint').Reporter} reporter -Reporter.13 * @param {Record<string, Record<string, boolean>>} options -KSES options.11 * @param {import('htmlhint').HTMLParser} parser Parser. 12 * @param {import('htmlhint').Reporter} reporter Reporter. 13 * @param {Record<string, Record<string, boolean>>} options KSES options. 14 14 * @return {void} 15 15 */ -
trunk/src/js/_enqueues/lib/codemirror/javascript-lint.js
r63407 r63600 13 13 * 14 14 * @typedef {Object} CodeMirrorLintError 15 * @property {string} messageError message.16 * @property {'error'} severity Severity.17 * @property {CodeMirror.Position} from From position.18 * @property {CodeMirror.Position} to To position.15 * @property {string} message Error message. 16 * @property {'error'} severity Severity. 17 * @property {CodeMirror.Position} from From position. 18 * @property {CodeMirror.Position} to To position. 19 19 */ 20 20 … … 26 26 * 27 27 * @typedef {Object} SupportedJSHintOptions 28 * @property {import('espree').Options['ecmaVersion']} [esversion] "This option is used to specify the ECMAScript version to which the code must adhere."29 * @property {boolean} [es5]"This option enables syntax first defined in the ECMAScript 5.1 specification. This includes allowing reserved keywords as object properties."30 * @property {boolean} [es3]"This option tells JSHint that your code needs to adhere to ECMAScript 3 specification. Use this option if you need your program to be executable in older browsers—such as Internet Explorer 6/7/8/9—and other legacy JavaScript environments."31 * @property {boolean} [module]"This option informs JSHint that the input code describes an ECMAScript 6 module. All module code is interpreted as strict mode code."32 * @property {'implied'} [strict]"This option requires the code to run in ECMAScript 5's strict mode."33 * @property {string} [espreeModuleUrl] The URL to the espree script module.28 * @property {import('espree').Options['ecmaVersion']} [esversion] "This option is used to specify the ECMAScript version to which the code must adhere." 29 * @property {boolean} [es5] "This option enables syntax first defined in the ECMAScript 5.1 specification. This includes allowing reserved keywords as object properties." 30 * @property {boolean} [es3] "This option tells JSHint that your code needs to adhere to ECMAScript 3 specification. Use this option if you need your program to be executable in older browsers—such as Internet Explorer 6/7/8/9—and other legacy JavaScript environments." 31 * @property {boolean} [module] "This option informs JSHint that the input code describes an ECMAScript 6 module. All module code is interpreted as strict mode code." 32 * @property {'implied'} [strict] "This option requires the code to run in ECMAScript 5's strict mode." 33 * @property {string} [espreeModuleUrl] The URL to the espree script module. 34 34 */ 35 35 … … 39 39 * @since 7.0.0 40 40 * 41 * @param {string} textSource.41 * @param {string} text Source. 42 42 * @param {SupportedJSHintOptions} options Linting options. 43 43 * @return {Promise<CodeMirrorLintError[]>} Linting errors. -
trunk/src/js/_enqueues/lib/color-picker.js
r63514 r63600 70 70 * @ignore 71 71 * 72 * @param {Event} eventThe event that's being called.73 * @param {HTMLElement} ui The HTMLElement containing the color picker.72 * @param {Event} event The event that's being called. 73 * @param {HTMLElement} ui The HTMLElement containing the color picker. 74 74 * 75 75 * @return {void} … … 190 190 * @ignore 191 191 * 192 * @param {Event} eventThe event that's being called.193 * @param {HTMLElement} ui The HTMLElement containing the color picker.192 * @param {Event} event The event that's being called. 193 * @param {HTMLElement} ui The HTMLElement containing the color picker. 194 194 * 195 195 * @return {void} -
trunk/src/js/_enqueues/lib/cookies.js
r63406 r63600 64 64 * 'values_obj' is the JS object that is stored. It is encoded as URI in wpCookies.set(). 65 65 * 66 * @param {string} name The name of the cookie.67 * @param {Object} values_obj The values to store in the cookie.68 * @param {number|Date} [expires] Optional. Expiration time in seconds or a Date object.69 * @param {string} [path] Optional. The path on the server in which the cookie will be available on.70 * @param {string} [domain] Optional. The domain that the cookie is available to.71 * @param {boolean} [secure] Optional. Whether the cookie should only be transmitted over a secure HTTPS connection.66 * @param {string} name The name of the cookie. 67 * @param {Object} values_obj The values to store in the cookie. 68 * @param {number|Date} [expires] Optional. Expiration time in seconds or a Date object. 69 * @param {string} [path] Optional. The path on the server in which the cookie will be available on. 70 * @param {string} [domain] Optional. The domain that the cookie is available to. 71 * @param {boolean} [secure] Optional. Whether the cookie should only be transmitted over a secure HTTPS connection. 72 72 */ 73 73 setHash: function( name, values_obj, expires, path, domain, secure ) { -
trunk/src/js/_enqueues/lib/emoji-loader.js
r63406 r63600 58 58 * @typedef SessionSupportTests 59 59 * @type {Object} 60 * @property {number} timestamp60 * @property {number} timestamp 61 61 * @property {SupportTests} supportTests 62 62 */ … … 129 129 * 130 130 * @param {CanvasRenderingContext2D} context 2D Context. 131 * @param {string} set1Set of Emoji to test.132 * @param {string} set2Set of Emoji to test.131 * @param {string} set1 Set of Emoji to test. 132 * @param {string} set2 Set of Emoji to test. 133 133 * 134 134 * @return {boolean} True if the two sets render the same. … … 179 179 * 180 180 * @param {CanvasRenderingContext2D} context 2D Context. 181 * @param {string} emojiEmoji to test.181 * @param {string} emoji Emoji to test. 182 182 * 183 183 * @return {boolean} True if the center point is empty. … … 210 210 * @private 211 211 * 212 * @param {CanvasRenderingContext2D} context 2D Context.213 * @param {string} typeWhether to test for support of "flag" or "emoji".214 * @param {Function} emojiSetsRenderIdenticallyReference to emojiSetsRenderIdentically function, needed due to minification.215 * @param {Function} emojiRendersEmptyCenterPoint Reference to emojiRendersEmptyCenterPoint function, needed due to minification.212 * @param {CanvasRenderingContext2D} context 2D Context. 213 * @param {string} type Whether to test for support of "flag" or "emoji". 214 * @param {Function} emojiSetsRenderIdentically Reference to emojiSetsRenderIdentically function, needed due to minification. 215 * @param {Function} emojiRendersEmptyCenterPoint Reference to emojiRendersEmptyCenterPoint function, needed due to minification. 216 216 * 217 217 * @return {boolean} True if the browser can render emoji, false if it cannot. … … 303 303 * @private 304 304 * 305 * @param {string[]} tests Tests.306 * @param {Function} browserSupportsEmoji Reference to browserSupportsEmoji function, needed due to minification.307 * @param {Function} emojiSetsRenderIdentically Reference to emojiSetsRenderIdentically function, needed due to minification.305 * @param {string[]} tests Tests. 306 * @param {Function} browserSupportsEmoji Reference to browserSupportsEmoji function, needed due to minification. 307 * @param {Function} emojiSetsRenderIdentically Reference to emojiSetsRenderIdentically function, needed due to minification. 308 308 * @param {Function} emojiRendersEmptyCenterPoint Reference to emojiRendersEmptyCenterPoint function, needed due to minification. 309 309 * -
trunk/src/js/_enqueues/lib/image-edit.js
r63406 r63600 308 308 * @memberof imageEdit 309 309 * 310 * @param {Event} event The key or click event.311 * @param {HTMLElement} el The current element.310 * @param {Event} event The key or click event. 311 * @param {HTMLElement} el The current element. 312 312 * 313 313 * @return {boolean} Always returns false. … … 439 439 * @memberof imageEdit 440 440 * 441 * @param {number} postid The current post ID.442 * @param {number} x Is 0 when it applies the y-axis443 * and 1 when applicable for the x-axis.444 * @param {jQuery} el Element.441 * @param {number} postid The current post ID. 442 * @param {number} x Is 0 when it applies the y-axis 443 * and 1 when applicable for the x-axis. 444 * @param {jQuery} el Element. 445 445 * 446 446 * @return {void} … … 733 733 * @memberof imageEdit 734 734 * 735 * @param {number} postidThe post ID to get the image from the database.736 * @param {string} nonceThe nonce to verify the request.735 * @param {number} postid The post ID to get the image from the database. 736 * @param {string} nonce The nonce to verify the request. 737 737 * 738 738 * @return {boolean|void} If the actions are successfully saved a response message is shown. … … 802 802 * @memberof imageEdit 803 803 * 804 * @param {number} postid The post ID for the image.805 * @param {string} nonce The nonce to verify the request.806 * @param {Object} view The image editor view to be used for the editing.804 * @param {number} postid The post ID for the image. 805 * @param {string} nonce The nonce to verify the request. 806 * @param {Object} view The image editor view to be used for the editing. 807 807 * 808 808 * @return {void|promise} Either returns void if the button was already activated … … 1291 1291 * @memberof imageEdit 1292 1292 * 1293 * @param {number} postid The post ID.1294 * @param {string} nonce The nonce.1293 * @param {number} postid The post ID. 1294 * @param {string} nonce The nonce. 1295 1295 * 1296 1296 * @return {void|false} Returns false if the undo button is disabled. … … 1449 1449 * @memberof imageEdit 1450 1450 * 1451 * @param {number} postid The post ID.1452 * @param {number} n The ratio to set.1453 * @param {jQuery} el The element containing the values.1451 * @param {number} postid The post ID. 1452 * @param {number} n The ratio to set. 1453 * @param {jQuery} el The element containing the values. 1454 1454 * 1455 1455 * @return {void} -
trunk/src/js/_enqueues/lib/lists.js
r63598 r63600 227 227 * data[3] - Hex color to be used in this request. If data[0] is 'dim', dim class. 228 228 * data[4] - Additional arguments in query syntax that are added to the request. Example: 'post_id=1234'. 229 * If data[0] is 'dim', dim add color.229 * If data[0] is 'dim', dim add color. 230 230 * data[5] - Only available if data[0] is 'dim', dim delete color. 231 231 * data[6] - Only available if data[0] is 'dim', additional arguments in query syntax that are added to the request. -
trunk/src/js/_enqueues/lib/pointer.js
r63407 r63600 75 75 * 76 76 * - `document` will transfer the pointer to the body of the new document 77 * specified by the value.77 * specified by the value. 78 78 * - `pointerClass` will change the class of the pointer element. 79 79 * - `position` will reposition the pointer. -
trunk/src/js/_enqueues/lib/quicktags.js
r63556 r63600 334 334 * 335 335 * Minimum required to add a button that calls an external function: 336 * QTags.addButton( 'my_id', 'my button', my_callback );337 * function my_callback() { alert('yeah!'); }336 * QTags.addButton( 'my_id', 'my button', my_callback ); 337 * function my_callback() { alert('yeah!'); } 338 338 * 339 339 * Minimum required to add a button that inserts a tag: 340 * QTags.addButton( 'my_id', 'my button', '<span>', '</span>' );341 * QTags.addButton( 'my_id2', 'my button', '<br />' );340 * QTags.addButton( 'my_id', 'my button', '<span>', '</span>' ); 341 * QTags.addButton( 'my_id2', 'my button', '<br />' ); 342 342 * 343 343 * @param {string} id Required. Button HTML ID -
trunk/src/js/_enqueues/lib/user-suggest.js
r50547 r63600 35 35 * Optional data-attributes: 36 36 * - data-autocomplete-type (add, search) 37 * The action that is going to be performed: search for existing users38 * or add a new one. Default: add37 * The action that is going to be performed: search for existing users 38 * or add a new one. Default: add 39 39 * - data-autocomplete-field (user_login, user_email) 40 * The field that is returned as the value for the suggestion.41 * Default: user_login40 * The field that is returned as the value for the suggestion. 41 * Default: user_login 42 42 * 43 43 * @see wp-admin/includes/admin-actions.php:wp_ajax_autocomplete_user() -
trunk/src/js/_enqueues/wp/api.js
r63598 r63600 207 207 * Extract a route part based on negative index. 208 208 * 209 * @param {string} routeThe endpoint route.210 * @param {number} partThe number of parts from the end of the route to retrieve. Default 1.209 * @param {string} route The endpoint route. 210 * @param {number} part The number of parts from the end of the route to retrieve. Default 1. 211 211 * Example route `/a/b/c`: part 1 is `c`, part 2 is `b`, part 3 is `a`. 212 212 * @param {string} [versionString] Version string, defaults to `wp.api.versionString`. … … 314 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 * @param {Object} loadingObjects An object containing the models and collections we are building.316 * @param {Object} loadingObjects An object containing the models and collections we are building. 317 317 * @return {undefined} No return value. 318 318 */ … … 859 859 860 860 /** 861 * Types that don't support trashing require passing ?force=true to delete. 862 * 863 */ 861 * Types that don't support trashing require passing ?force=true to delete. 862 */ 864 863 if ( -1 === _.indexOf( trashableTypes, this.name ) ) { 865 864 this.requireForceForDelete = true; -
trunk/src/js/_enqueues/wp/backbone.js
r57987 r63600 285 285 * 286 286 * @return {wp.Backbone.Subviews} The current Subviews instance. 287 */287 */ 288 288 render: function() { 289 289 var options = { … … 315 315 * 316 316 * @return {wp.Backbone.Subviews} The current Subviews instance. 317 */317 */ 318 318 remove: function( options ) { 319 319 if ( ! options || ! options.silent ) { … … 339 339 * 340 340 * @param {string} $target Selector where to put the elements. 341 * @param {*} elsHTML or elements to put into the selector's HTML.341 * @param {*} els HTML or elements to put into the selector's HTML. 342 342 * 343 343 * @return {wp.Backbone.Subviews} The current Subviews instance. -
trunk/src/js/_enqueues/wp/code-editor.js
r63514 r63600 20 20 /** 21 21 * @typedef {Object} CodeMirrorState 22 * @property {boolean} [completionActive] -Whether completion is active.23 * @property {boolean} [focused] -Whether the editor is focused.22 * @property {boolean} [completionActive] Whether completion is active. 23 * @property {boolean} [focused] Whether the editor is focused. 24 24 */ 25 25 26 26 /** 27 27 * @typedef {import('codemirror').EditorFromTextArea & { 28 * options: import('codemirror').EditorConfiguration,29 * performLint?: () => void,30 * showHint?: (options: import('codemirror').ShowHintOptions) => void,31 * state: CodeMirrorState28 * options: import('codemirror').EditorConfiguration, 29 * performLint?: () => void, 30 * showHint?: (options: import('codemirror').ShowHintOptions) => void, 31 * state: CodeMirrorState 32 32 * }} CodeMirrorEditor 33 33 */ … … 35 35 /** 36 36 * @typedef {Object} LintAnnotation 37 * @property {string} message -Message.38 * @property {'error'|'warning'} severity -Severity.39 * @property {import('codemirror').Position} from -From position.40 * @property {import('codemirror').Position} to -To position.37 * @property {string} message Message. 38 * @property {'error'|'warning'} severity Severity. 39 * @property {import('codemirror').Position} from From position. 40 * @property {import('codemirror').Position} to To position. 41 41 */ 42 42 43 43 /** 44 44 * @typedef {Object} CodeMirrorTokenState 45 * @property {Object} [htmlState] -HTML state.46 * @property {string} [htmlState.tagName] -Tag name.47 * @property {CodeMirrorTokenState} [curState] -Current state.45 * @property {Object} [htmlState] HTML state. 46 * @property {string} [htmlState.tagName] Tag name. 47 * @property {CodeMirrorTokenState} [curState] Current state. 48 48 */ 49 49 50 50 /** 51 51 * @typedef {import('codemirror').EditorConfiguration & { 52 * lint?: boolean | CombinedLintOptions,53 * autoCloseBrackets?: boolean,54 * matchBrackets?: boolean,55 * continueComments?: boolean,56 * styleActiveLine?: boolean52 * lint?: boolean | CombinedLintOptions, 53 * autoCloseBrackets?: boolean, 54 * matchBrackets?: boolean, 55 * continueComments?: boolean, 56 * styleActiveLine?: boolean 57 57 * }} CodeMirrorSettings 58 58 */ … … 60 60 /** 61 61 * @typedef {Object} CSSLintRules 62 * @property {boolean} [errors] -Errors.63 * @property {boolean} [box-model] -Box model rules.64 * @property {boolean} [display-property-grouping] -Display property grouping rules.65 * @property {boolean} [duplicate-properties] -Duplicate properties rules.66 * @property {boolean} [known-properties] -Known properties rules.67 * @property {boolean} [outline-none] -Outline none rules.62 * @property {boolean} [errors] Errors. 63 * @property {boolean} [box-model] Box model rules. 64 * @property {boolean} [display-property-grouping] Display property grouping rules. 65 * @property {boolean} [duplicate-properties] Duplicate properties rules. 66 * @property {boolean} [known-properties] Known properties rules. 67 * @property {boolean} [outline-none] Outline none rules. 68 68 */ 69 69 70 70 /** 71 71 * @typedef {Object} JSHintRules 72 * @property {number} [esversion] -ECMAScript version.73 * @property {boolean} [module] -Whether to use modules.74 * @property {boolean} [boss] -Whether to allow assignments in control expressions.75 * @property {boolean} [curly] -Whether to require curly braces.76 * @property {boolean} [eqeqeq] -Whether to require === and !==.77 * @property {boolean} [eqnull] -Whether to allow == null.78 * @property {boolean} [expr] -Whether to allow expressions.79 * @property {boolean} [immed] -Whether to require immediate function invocation.80 * @property {boolean} [noarg] -Whether to prohibit arguments.caller/callee.81 * @property {boolean} [nonbsp] -Whether to prohibit non-breaking spaces.82 * @property {string} [quotmark] -Quote mark preference.83 * @property {boolean} [undef] -Whether to prohibit undefined variables.84 * @property {boolean} [unused] -Whether to prohibit unused variables.85 * @property {boolean} [browser] -Whether to enable browser globals.86 * @property {Record<string, boolean>} [globals] -Global variables.72 * @property {number} [esversion] ECMAScript version. 73 * @property {boolean} [module] Whether to use modules. 74 * @property {boolean} [boss] Whether to allow assignments in control expressions. 75 * @property {boolean} [curly] Whether to require curly braces. 76 * @property {boolean} [eqeqeq] Whether to require === and !==. 77 * @property {boolean} [eqnull] Whether to allow == null. 78 * @property {boolean} [expr] Whether to allow expressions. 79 * @property {boolean} [immed] Whether to require immediate function invocation. 80 * @property {boolean} [noarg] Whether to prohibit arguments.caller/callee. 81 * @property {boolean} [nonbsp] Whether to prohibit non-breaking spaces. 82 * @property {string} [quotmark] Quote mark preference. 83 * @property {boolean} [undef] Whether to prohibit undefined variables. 84 * @property {boolean} [unused] Whether to prohibit unused variables. 85 * @property {boolean} [browser] Whether to enable browser globals. 86 * @property {Record<string, boolean>} [globals] Global variables. 87 87 */ 88 88 89 89 /** 90 90 * @typedef {Object} HTMLHintRules 91 * @property {boolean} [tagname-lowercase] -Tag name lowercase rules.92 * @property {boolean} [attr-lowercase] -Attribute lowercase rules.93 * @property {boolean} [attr-value-double-quotes] -Attribute value double quotes rules.94 * @property {boolean} [doctype-first] -Doctype first rules.95 * @property {boolean} [tag-pair] -Tag pair rules.96 * @property {boolean} [spec-char-escape] -Spec char escape rules.97 * @property {boolean} [id-unique] -ID unique rules.98 * @property {boolean} [src-not-empty] -Src not empty rules.99 * @property {boolean} [attr-no-duplication] -Attribute no duplication rules.100 * @property {boolean} [alt-require] -Alt require rules.101 * @property {string} [space-tab-mixed-disabled] -Space tab mixed disabled rules.102 * @property {boolean} [attr-unsafe-chars] -Attribute unsafe chars rules.103 * @property {JSHintRules} [jshint] -JSHint rules.104 * @property {CSSLintRules} [csslint] -CSSLint rules.91 * @property {boolean} [tagname-lowercase] Tag name lowercase rules. 92 * @property {boolean} [attr-lowercase] Attribute lowercase rules. 93 * @property {boolean} [attr-value-double-quotes] Attribute value double quotes rules. 94 * @property {boolean} [doctype-first] Doctype first rules. 95 * @property {boolean} [tag-pair] Tag pair rules. 96 * @property {boolean} [spec-char-escape] Spec char escape rules. 97 * @property {boolean} [id-unique] ID unique rules. 98 * @property {boolean} [src-not-empty] Src not empty rules. 99 * @property {boolean} [attr-no-duplication] Attribute no duplication rules. 100 * @property {boolean} [alt-require] Alt require rules. 101 * @property {string} [space-tab-mixed-disabled] Space tab mixed disabled rules. 102 * @property {boolean} [attr-unsafe-chars] Attribute unsafe chars rules. 103 * @property {JSHintRules} [jshint] JSHint rules. 104 * @property {CSSLintRules} [csslint] CSSLint rules. 105 105 */ 106 106 … … 110 110 * @typedef {Object} CodeEditorSettings 111 111 * 112 * @property {CodeMirrorSettings} [codemirror] -CodeMirror settings.113 * @property {CSSLintRules} [csslint] -CSSLint rules.114 * @property {JSHintRules} [jshint] -JSHint rules.115 * @property {HTMLHintRules} [htmlhint] -HTMLHint rules.112 * @property {CodeMirrorSettings} [codemirror] CodeMirror settings. 113 * @property {CSSLintRules} [csslint] CSSLint rules. 114 * @property {JSHintRules} [jshint] JSHint rules. 115 * @property {HTMLHintRules} [htmlhint] HTMLHint rules. 116 116 * 117 * @property {(codemirror: CodeMirrorEditor, event: KeyboardEvent|JQuery.KeyDownEvent) => void} [onTabNext] -Callback to handle tabbing to the next tabbable element.118 * @property {(codemirror: CodeMirrorEditor, event: KeyboardEvent|JQuery.KeyDownEvent) => void} [onTabPrevious] -Callback to handle tabbing to the previous tabbable element.119 * @property {(errorAnnotations: LintAnnotation[], annotations: LintAnnotation[], annotationsSorted: LintAnnotation[], cm: CodeMirrorEditor) => void} [onChangeLintingErrors] -Callback for when the linting errors have changed.120 * @property {(errorAnnotations: LintAnnotation[], editor: CodeMirrorEditor) => void} [onUpdateErrorNotice] -Callback for when error notice should be displayed.117 * @property {(codemirror: CodeMirrorEditor, event: KeyboardEvent|JQuery.KeyDownEvent) => void} [onTabNext] Callback to handle tabbing to the next tabbable element. 118 * @property {(codemirror: CodeMirrorEditor, event: KeyboardEvent|JQuery.KeyDownEvent) => void} [onTabPrevious] Callback to handle tabbing to the previous tabbable element. 119 * @property {(errorAnnotations: LintAnnotation[], annotations: LintAnnotation[], annotationsSorted: LintAnnotation[], cm: CodeMirrorEditor) => void} [onChangeLintingErrors] Callback for when the linting errors have changed. 120 * @property {(errorAnnotations: LintAnnotation[], editor: CodeMirrorEditor) => void} [onUpdateErrorNotice] Callback for when error notice should be displayed. 121 121 */ 122 122 … … 127 127 /** 128 128 * @typedef {Object} CodeEditorInstance 129 * @property {CodeEditorSettings} settings -The code editor settings.130 * @property {CodeMirrorEditor} codemirror -The CodeMirror instance.131 * @property {() => void} updateErrorNotice -Force update the error notice.129 * @property {CodeEditorSettings} settings The code editor settings. 130 * @property {CodeMirrorEditor} codemirror The CodeMirror instance. 131 * @property {() => void} updateErrorNotice Force update the error notice. 132 132 */ 133 133 134 134 /** 135 135 * @typedef {Object} WpCodeEditor 136 * @property {CodeEditorSettings} defaultSettings -Default settings.137 * @property {(textarea: string|JQuery|Element, settings?: CodeEditorSettings) => CodeEditorInstance} initialize -Initialize.136 * @property {CodeEditorSettings} defaultSettings Default settings. 137 * @property {(textarea: string|JQuery|Element, settings?: CodeEditorSettings) => CodeEditorInstance} initialize Initialize. 138 138 */ 139 139 … … 167 167 * Configures linting. 168 168 * 169 * @param {CodeEditorSettings} settings -Code editor settings.169 * @param {CodeEditorSettings} settings Code editor settings. 170 170 * 171 171 * @return {LintingController} Linting controller. … … 181 181 * Call the onUpdateErrorNotice if there are new errors to show. 182 182 * 183 * @param {import('codemirror').Editor} editor -Editor.183 * @param {import('codemirror').Editor} editor Editor. 184 184 * @return {void} 185 185 */ … … 238 238 * Wraps the onUpdateLinting event to filter errors, detect state changes, and manage error notice visibility. 239 239 * 240 * @param {LintAnnotation[]} annotations -Annotations.241 * @param {LintAnnotation[]} annotationsSorted -Sorted annotations.242 * @param {CodeMirrorEditor} cm -Editor.240 * @param {LintAnnotation[]} annotations Annotations. 241 * @param {LintAnnotation[]} annotationsSorted Sorted annotations. 242 * @param {CodeMirrorEditor} cm Editor. 243 243 */ 244 244 return function( annotations, annotationsSorted, cm ) { … … 282 282 * Initializes the CodeMirror editor. 283 283 * 284 * @param {CodeMirrorEditor} editor -Editor instance.284 * @param {CodeMirrorEditor} editor Editor instance. 285 285 * @return {void} 286 286 */ … … 350 350 }, 351 351 /** 352 * @param {CodeMirrorEditor} editor -Editor instance.352 * @param {CodeMirrorEditor} editor Editor instance. 353 353 * @return {void} 354 354 */ … … 360 360 * Configure tabbing. 361 361 * 362 * @param {CodeMirrorEditor} codemirror -Editor.363 * @param {CodeEditorSettings} settings -Code editor settings.362 * @param {CodeMirrorEditor} codemirror Editor. 363 * @param {CodeEditorSettings} settings Code editor settings. 364 364 * 365 365 * @return {void} … … 400 400 /** 401 401 * @typedef {Object} LintingController 402 * @property {() => CombinedLintOptions|false} getLintOptions -Get lint options.403 * @property {(editor: CodeMirrorEditor) => void} init -Initialize.404 * @property {(editor: import('codemirror').Editor) => void} updateErrorNotice -Update error notice.402 * @property {() => CombinedLintOptions|false} getLintOptions Get lint options. 403 * @property {(editor: CodeMirrorEditor) => void} init Initialize. 404 * @property {(editor: import('codemirror').Editor) => void} updateErrorNotice Update error notice. 405 405 */ 406 406 … … 410 410 * @since 4.9.0 411 411 * 412 * @param {string|JQuery<HTMLElement>|HTMLElement} textarea -The HTML id, jQuery object, or DOM Element for the textarea that is used for the editor.413 * @param {CodeEditorSettings} [settings] -Settings to override defaults.412 * @param {string|JQuery<HTMLElement>|HTMLElement} textarea The HTML id, jQuery object, or DOM Element for the textarea that is used for the editor. 413 * @param {CodeEditorSettings} [settings] Settings to override defaults. 414 414 * 415 415 * @return {CodeEditorInstance} Instance. -
trunk/src/js/_enqueues/wp/custom-header.js
r63556 r63600 20 20 * 21 21 * @param {Element} target HTML element to dispatch the event on. 22 * @param {string} nameEvent name.22 * @param {string} name Event name. 23 23 */ 24 24 function trigger( target, name ) { -
trunk/src/js/_enqueues/wp/customize/base.js
r63525 r63600 569 569 * 570 570 * For example: 571 * when( id1, id2, id3, function( value1, value2, value3 ) {} );571 * when( id1, id2, id3, function( value1, value2, value3 ) {} ); 572 572 * 573 573 * @param {...(string|Function)} ids Zero or more IDs of items to wait for, optionally followed by -
trunk/src/js/_enqueues/wp/customize/controls.js
r63556 r63600 3102 3102 3103 3103 /** 3104 * Class wp.customize.ThemesPanel.3104 * Class wp.customize.ThemesPanel. 3105 3105 * 3106 3106 * Custom section for themes that displays without the customize preview. -
trunk/src/js/_enqueues/wp/customize/loader.js
r63525 r63600 34 34 * an iframe overlay with the URL specified. 35 35 * 36 * e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open Customizer</a>36 * e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open Customizer</a> 37 37 * 38 38 * @memberOf wp.customize -
trunk/src/js/_enqueues/wp/dashboard.js
r63598 r63600 68 68 * 69 69 * @global 70 */70 */ 71 71 window.ajaxWidgets = ['dashboard_primary']; 72 72 … … 86 86 * Fetch the latest representation of the widget via Ajax and show it. 87 87 * 88 * @param {number} i Number of half-seconds to use as the timeout.88 * @param {number} i Number of half-seconds to use as the timeout. 89 89 * @param {string} id ID of the element which is going to be checked for changes. 90 90 * … … 164 164 * 165 165 * @return {void} 166 */166 */ 167 167 function highlightLatestPost () { 168 168 var latestPost = $( '.drafts ul li' ) .first(), … … 836 836 * 837 837 * @type {Object} 838 */838 */ 839 839 window.communityEventsData.l10n = window.communityEventsData.l10n || { 840 840 enter_closest_city: '', -
trunk/src/js/_enqueues/wp/editor/base.js
r63556 r63600 79 79 * @memberof switchEditors 80 80 * 81 * @param {string} id The id of the editor you want to change the editor mode for. Default: `content`.81 * @param {string} id The id of the editor you want to change the editor mode for. Default: `content`. 82 82 * @param {string} mode The mode you want to switch to. Default: `toggle`. 83 83 * @return {void} … … 202 202 * e.g. `[caption]<img.../>..`. 203 203 * 204 * @param {string} content The test content where the cursor is.204 * @param {string} content The test content where the cursor is. 205 205 * @param {number} cursorPosition The cursor position inside the content. 206 206 * … … 247 247 * something, instead of just losing focus and going to the start of the content. 248 248 * 249 * @param {string} content The text content to check against.250 * @param {number} cursorPosition The cursor position to check.249 * @param {string} content The text content to check against. 250 * @param {number} cursorPosition The cursor position to check. 251 251 * 252 252 * @return {void|Object} Undefined if the cursor is not wrapped in a shortcode tag. … … 373 373 * Using DomQuery syntax to create it, since it's used as both text and as a DOM element. 374 374 * 375 * @param {Object} domLib DOM library instance.375 * @param {Object} domLib DOM library instance. 376 376 * @param {string} content The content to insert into the cursor marker element. 377 377 * @return {Object} The cursor marker element. … … 396 396 * @link getShortcodeWrapperInfo 397 397 * 398 * @param {string} contentTextarea content that the cursors are in398 * @param {string} content Textarea content that the cursors are in 399 399 * @param {{cursorStart: number, cursorEnd: number}} cursorPositions Cursor start and end positions 400 400 * … … 586 586 * from the window height, to get the proper viewport window, that the user sees. 587 587 * 588 * @param {Object} editor TinyMCE editor instance.588 * @param {Object} editor TinyMCE editor instance. 589 589 * @param {Object} element HTMLElement that should be scrolled into view. 590 590 */ … … 826 826 * @link findBookmarkedPosition 827 827 * 828 * @param {Object} editor TinyMCE's editor instance.828 * @param {Object} editor TinyMCE's editor instance. 829 829 * @param {Object} selection Selection data. 830 830 */ … … 1225 1225 * @since 4.8.0 1226 1226 * 1227 * @param {string} id The HTML id of the textarea that is used for the editor. 1228 * Has to be jQuery compliant. No brackets, special chars, etc. 1229 * @param {Object} settings Example: 1227 * @param {string} id The HTML id of the textarea that is used for the editor. 1228 * Has to be jQuery compliant. No brackets, special chars, etc. 1229 * @param {Object} settings The settings for initializing the editor. 1230 * 1231 * @example 1232 * ```javascript 1230 1233 * settings = { 1231 1234 * // See https://www.tinymce.com/docs/configure/integration-and-setup/. … … 1242 1245 * } 1243 1246 * } 1247 * 1248 * settings = { 1249 * // See https://www.tinymce.com/docs/configure/integration-and-setup/. 1250 * // Alternatively set to `true` to use the defaults. 1251 * tinymce: { 1252 * setup: function( editor ) { 1253 * console.log( 'Editor initialized', editor ); 1254 * } 1255 * } 1256 * 1257 * // Alternatively set to `true` to use the defaults. 1258 * quicktags: { 1259 * buttons: 'strong,em,link' 1260 * } 1261 * } 1262 * ``` 1244 1263 */ 1245 1264 wp.editor.initialize = function( id, settings ) { -
trunk/src/js/_enqueues/wp/editor/dfw.js
r63556 r63600 174 174 * @since 4.0.0 175 175 * 176 * @param {event} eventThe TinyMCE editor init event.176 * @param {event} event The TinyMCE editor init event. 177 177 * @param {Object} editor The editor to bind the vents on. 178 178 * … … 1474 1474 * @since 4.1.0 1475 1475 * 1476 * @param {event} eventThe TinyMCE editor setup event.1476 * @param {event} event The TinyMCE editor setup event. 1477 1477 * @param {Object} editor The editor to add the button to. 1478 1478 * … … 1523 1523 * @since 4.1.0 1524 1524 * 1525 * @param {event} eventThe TinyMCE editor init event.1525 * @param {event} event The TinyMCE editor init event. 1526 1526 * @param {Object} editor The editor to bind events on. 1527 1527 * … … 1582 1582 1583 1583 /** 1584 * Binds events on quicktags init.1585 * 1586 * @since 4.1.0 1587 * 1588 * @param {event} eventThe quicktags init event.1584 * Binds events on quicktags init. 1585 * 1586 * @since 4.1.0 1587 * 1588 * @param {event} event The quicktags init event. 1589 1589 * @param {Object} editor The editor to bind events on. 1590 1590 * -
trunk/src/js/_enqueues/wp/embed.js
r63556 r63600 2 2 * WordPress inline HTML embed 3 3 * 4 * @param {Window} windowThe global window object.4 * @param {Window} window The global window object. 5 5 * @param {Document} document The global document object. 6 6 * @since 4.4.0 -
trunk/src/js/_enqueues/wp/emoji.js
r63407 r63600 3 3 * doesn't support emoji natively. 4 4 * 5 * @param {Window} window The global window object.5 * @param {Window} window The global window object. 6 6 * @param {Object} settings The settings object. 7 7 * @output wp-includes/js/wp-emoji.js … … 191 191 * - When passed an element the emoji characters are replaced inline. 192 192 * - When passed a string the emoji characters are replaced and the result is 193 * returned.193 * returned. 194 194 * 195 195 * @since 4.2.0 -
trunk/src/js/_enqueues/wp/heartbeat.js
r63598 r63600 791 791 * Enqueues data to send with the next XHR. 792 792 * 793 * As the data is sen dasynchronously, this function doesn't return the XHR793 * As the data is sent asynchronously, this function doesn't return the XHR 794 794 * response. To see the response, use the custom jQuery event 'heartbeat-tick' 795 * on the document, example: 795 * on the document. 796 * 797 * @example 798 * ```javascript 796 799 * $(document).on( 'heartbeat-tick.myname', function( event, data, textStatus, jqXHR ) { 797 800 * // code 798 801 * }); 802 * ``` 803 * 799 804 * If the same 'handle' is used more than once, the data is not overwritten when 800 805 * the third argument is 'true'. Use `wp.heartbeat.isQueued('handle')` to see if -
trunk/src/js/_enqueues/wp/media/audiovideo.js
r63407 r63600 198 198 * Shortcode modeling for video. 199 199 * 200 * `edit()` prepares the shortcode for the media modal.201 * `shortcode()` builds the new shortcode after update.200 * `edit()` prepares the shortcode for the media modal. 201 * `shortcode()` builds the new shortcode after update. 202 202 * 203 203 * @since 4.2.0 -
trunk/src/js/_enqueues/wp/media/editor.js
r63598 r63600 21 21 /** 22 22 * A helper mixin function to avoid truthy and falsey values being 23 * passed as an input that expects booleans. If key is undefined in the map,24 * but has a default value, set it.23 * passed as an input that expects booleans. If key is undefined in the map, 24 * but has a default value, set it. 25 25 * 26 26 * @param {Object} attrs Map of props from a shortcode or settings. 27 * @param {string} key The key within the passed map to check for a value.27 * @param {string} key The key within the passed map to check for a value. 28 28 * @return {mixed|undefined} The original or coerced value of key within attrs. 29 29 */ … … 112 112 * Create link markup that is suitable for passing to the editor 113 113 * 114 * @param {Object} props Attachment details (align, link, size, etc).114 * @param {Object} props Attachment details (align, link, size, etc). 115 115 * @param {Object} attachment The attachment object, media version of Post. 116 116 * @return {string} The link markup … … 138 138 * Create an Audio shortcode string that is suitable for passing to the editor 139 139 * 140 * @param {Object} props Attachment details (align, link, size, etc).140 * @param {Object} props Attachment details (align, link, size, etc). 141 141 * @param {Object} attachment The attachment object, media version of Post. 142 142 * @return {string} The audio shortcode … … 148 148 * Create a Video shortcode string that is suitable for passing to the editor 149 149 * 150 * @param {Object} props Attachment details (align, link, size, etc).150 * @param {Object} props Attachment details (align, link, size, etc). 151 151 * @param {Object} attachment The attachment object, media version of Post. 152 152 * @return {string} The video shortcode … … 160 160 * @access private 161 161 * 162 * @param {string} type The shortcode tag name: 'audio' or 'video'.163 * @param {Object} props Attachment details (align, link, size, etc).162 * @param {string} type The shortcode tag name: 'audio' or 'video'. 163 * @param {Object} props Attachment details (align, link, size, etc). 164 164 * @param {Object} attachment The attachment object, media version of Post. 165 165 * @return {string} The media shortcode … … 207 207 /** 208 208 * Create image markup, optionally with a link and/or wrapped in a caption shortcode, 209 * that is suitable for passing to the editor210 * 211 * @param {Object} props Attachment details (align, link, size, etc).209 * that is suitable for passing to the editor 210 * 211 * @param {Object} props Attachment details (align, link, size, etc). 212 212 * @param {Object} attachment The attachment object, media version of Post. 213 213 * @return {string} The image markup. … … 419 419 * 420 420 * @param {wp.media.model.Attachments} attachments A Backbone.Collection containing 421 * the media items belonging to a collection.422 * The query[ this.tag ] property is a Backbone.Model423 * containing the 'props' for the collection.421 * the media items belonging to a collection. 422 * The query[ this.tag ] property is a Backbone.Model 423 * containing the 'props' for the collection. 424 424 * @return {wp.shortcode} A wp.shortcode instance representing the collection. 425 425 */ … … 486 486 /** 487 487 * Triggered when double-clicking a collection shortcode placeholder 488 * in the editor488 * in the editor 489 489 * 490 490 * @param {string} content Content that is searched for possible 491 * shortcode markup matching the passed tag name,491 * shortcode markup matching the passed tag name, 492 492 * 493 493 * @this wp.media.{prop} … … 690 690 /** 691 691 * 'select' callback for Featured Image workflow, triggered when 692 * the 'Set Featured Image' button is clicked in the media modal.692 * the 'Set Featured Image' button is clicked in the media modal. 693 693 * 694 694 * @this wp.media.controller.FeaturedImage … … 785 785 /** 786 786 * Setup 'workflow' and add to the 'workflows' cache. 'open' can 787 * subsequently be called upon it.787 * subsequently be called upon it. 788 788 * 789 789 * @param {string} id A slug used to identify the workflow. … … 944 944 /** 945 945 * Called when sending an attachment to the editor 946 * from the medial modal.946 * from the medial modal. 947 947 * 948 * @param {Object} props Attachment details (align, link, size, etc).948 * @param {Object} props Attachment details (align, link, size, etc). 949 949 * @param {Object} attachment The attachment object, media version of Post. 950 950 * @return {Promise} A promise that resolves when the attachment has been sent to the editor. -
trunk/src/js/_enqueues/wp/password-strength-meter.js
r63359 r63600 27 27 * @since 3.7.0 28 28 * 29 * @param {string} password1 The subject password.29 * @param {string} password1 The subject password. 30 30 * @param {Array} disallowedList An array of words that will lower the entropy of 31 * the password.32 * @param {string} password2 The password confirmation.31 * the password. 32 * @param {string} password2 The password confirmation. 33 33 * 34 34 * @return {number} The password strength score. -
trunk/src/js/_enqueues/wp/sanitize.js
r63514 r63600 20 20 * Strip HTML tags. 21 21 * 22 * @param {string} text -Text to strip the HTML tags from.22 * @param {string} text Text to strip the HTML tags from. 23 23 * 24 24 * @return {string} Stripped text. … … 53 53 * Strip HTML tags and convert HTML entities. 54 54 * 55 * @param {string} text -Text to strip tags and convert HTML entities.55 * @param {string} text Text to strip tags and convert HTML entities. 56 56 * 57 57 * @return {string} Sanitized text. -
trunk/src/js/_enqueues/wp/theme-plugin-editor.js
r63556 r63600 30 30 * @since 4.9.0 31 31 * 32 * @param {jQuery} form -Form element.33 * @param {Object} settings -Settings.34 * @param {Object|boolean} settings.codeEditor -Code editor settings (or `false` if syntax highlighting is disabled).32 * @param {jQuery} form Form element. 33 * @param {Object} settings Settings. 34 * @param {Object|boolean} settings.codeEditor Code editor settings (or `false` if syntax highlighting is disabled). 35 35 * @return {void} 36 36 */ … … 188 188 * 189 189 * @since 4.9.0 190 * @param {jQuery.Event} event -Event.190 * @param {jQuery.Event} event Event. 191 191 * @return {void} 192 192 */ … … 274 274 * @since 4.9.0 275 275 * 276 * @param {Object} notice -Notice.277 * @param {string} notice.code -Code.278 * @param {string} notice.type -Type.279 * @param {string} notice.message -Message.280 * @param {boolean} [notice.dismissible=false] -Dismissible.281 * @param {Function} [notice.onDismiss] -Callback for when a user dismisses the notice.276 * @param {Object} notice Notice. 277 * @param {string} notice.code Code. 278 * @param {string} notice.type Type. 279 * @param {string} notice.message Message. 280 * @param {boolean} [notice.dismissible=false] Dismissible. 281 * @param {Function} [notice.onDismiss] Callback for when a user dismisses the notice. 282 282 * @return {jQuery} Notice element. 283 283 */ … … 315 315 * @since 4.9.0 316 316 * 317 * @param {string} code -Notice code.317 * @param {string} code Notice code. 318 318 * @return {boolean} Whether a notice was removed. 319 319 */ … … 367 367 * @since 4.9.0 368 368 * 369 * @param {Array} errors -List of linting errors.369 * @param {Array} errors List of linting errors. 370 370 * @return {void} 371 371 */ … … 384 384 * @since 4.9.0 385 385 * 386 * @param {Array} errorAnnotations -Error annotations.386 * @param {Array} errorAnnotations Error annotations. 387 387 * @return {void} 388 388 */ … … 492 492 var TreeitemLink = (function () { 493 493 /** 494 * This content is licensed according to the W3C Software License at495 * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document496 * 497 * File: TreeitemLink.js498 * 499 * Desc: Treeitem widget that implements ARIA Authoring Practices500 * for a tree being used as a file viewer501 * 502 * Author: Jon Gunderson, Ku Ja Eun and Nicholas Hoyt494 * This content is licensed according to the W3C Software License at 495 * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document 496 * 497 * File: TreeitemLink.js 498 * 499 * Desc: Treeitem widget that implements ARIA Authoring Practices 500 * for a tree being used as a file viewer 501 * 502 * Author: Jon Gunderson, Ku Ja Eun and Nicholas Hoyt 503 503 */ 504 504 505 505 /** 506 * @class 507 * 508 * @description 509 * Treeitem object for representing the state and user interactions for a 510 * treeItem widget 511 * 512 * @param node 513 * An element with the role=tree attribute 506 * @class 507 * 508 * Treeitem object for representing the state and user interactions for a 509 * treeItem widget 510 * 511 * @param node An element with the role=tree attribute 514 512 */ 515 513 -
trunk/src/js/_enqueues/wp/theme.js
r63407 r63600 1486 1486 * @since 4.9.0 1487 1487 * 1488 * @param {string} url -URL to navigate to.1489 * @param {Object} state -State.1488 * @param {string} url URL to navigate to. 1489 * @param {Object} state State. 1490 1490 * @return {void} 1491 1491 */ -
trunk/src/js/_enqueues/wp/updates.js
r63598 r63600 1116 1116 * @since 6.5.0 1117 1117 * 1118 * @param {Object} response Response from the server.1119 * @param {string} response.slug Slug of the activated plugin.1120 * @param {string} response.pluginName Name of the activated plugin.1121 * @param {string} response.plugin The plugin file, relative to the plugins directory.1118 * @param {Object} response Response from the server. 1119 * @param {string} response.slug Slug of the activated plugin. 1120 * @param {string} response.pluginName Name of the activated plugin. 1121 * @param {string} response.plugin The plugin file, relative to the plugins directory. 1122 1122 */ 1123 1123 wp.updates.activatePluginSuccess = function( response ) { -
trunk/src/js/_enqueues/wp/utils/word-count.js
r48650 r63600 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.151 * @param {string} text Text to count elements in. 152 * @param {string} type Optional. Specify type to use. 153 153 * 154 154 * @return {number} The number of items counted. -
trunk/src/js/_enqueues/wp/widgets/custom-html.js
r63408 r63600 43 43 * @abstract 44 44 * 45 * @param {Object} options -Options.46 * @param {jQuery} options.el -Control field container element.47 * @param {jQuery} options.syncContainer -Container element where fields are synced for the server.45 * @param {Object} options Options. 46 * @param {jQuery} options.el Control field container element. 47 * @param {jQuery} options.syncContainer Container element where fields are synced for the server. 48 48 * 49 49 * @return {void} … … 125 125 * Show linting error notice. 126 126 * 127 * @param {Array} errorAnnotations -Error annotations.127 * @param {Array} errorAnnotations Error annotations. 128 128 * @return {void} 129 129 */ … … 206 206 * @ignore 207 207 * 208 * @param {Array} errorAnnotations -Error notifications.208 * @param {Array} errorAnnotations Error notifications. 209 209 * @return {void} 210 210 */ … … 218 218 * @ignore 219 219 * 220 * @param {Array} errorAnnotations -Error annotations.220 * @param {Array} errorAnnotations Error annotations. 221 221 * @return {void} 222 222 */ … … 288 288 * @alias wp.customHtmlWidgets.handleWidgetAdded 289 289 * 290 * @param {jQuery.Event} event -Event.291 * @param {jQuery} widgetContainer -Widget container element.290 * @param {jQuery.Event} event Event. 291 * @param {jQuery} widgetContainer Widget container element. 292 292 * 293 293 * @return {void} … … 385 385 * @alias wp.customHtmlWidgets.handleWidgetUpdated 386 386 * 387 * @param {jQuery.Event} event -Event.388 * @param {jQuery} widgetContainer -Widget container element.387 * @param {jQuery.Event} event Event. 388 * @param {jQuery} widgetContainer Widget container element. 389 389 * @return {void} 390 390 */ … … 416 416 * @alias wp.customHtmlWidgets.init 417 417 * 418 * @param {Object} settings -Options for code editor, exported from PHP.418 * @param {Object} settings Options for code editor, exported from PHP. 419 419 * 420 420 * @return {void} -
trunk/src/js/_enqueues/wp/widgets/media-audio.js
r46800 r63600 70 70 * Map model props to media frame props. 71 71 * 72 * @param {Object} modelProps -Model props.72 * @param {Object} modelProps Model props. 73 73 * @return {Object} Media frame props. 74 74 */ -
trunk/src/js/_enqueues/wp/widgets/media-gallery.js
r63408 r63600 85 85 * 86 86 * @since 4.9.0 87 * @param {Object} options -Options.88 * @param {Backbone.Model} options.model -Model.89 * @param {jQuery} options.el -Control field container element.90 * @param {jQuery} options.syncContainer -Container element where fields are synced for the server.87 * @param {Object} options Options. 88 * @param {Backbone.Model} options.model Model. 89 * @param {jQuery} options.el Control field container element. 90 * @param {jQuery} options.syncContainer Container element where fields are synced for the server. 91 91 * @return {void} 92 92 */ … … 321 321 * 322 322 * @since 4.9.0 323 * @param {wp.media.models.Attachment} attachment -Attachment.323 * @param {wp.media.models.Attachment} attachment Attachment. 324 324 * @return {void} 325 325 */ -
trunk/src/js/_enqueues/wp/widgets/media-image.js
r63408 r63600 138 138 * Prevent the image_title attribute from being initially set when adding an image from the media library. 139 139 * 140 * @param {wp.media.view.MediaFrame.Select} mediaFrame -Select frame.140 * @param {wp.media.view.MediaFrame.Select} mediaFrame Select frame. 141 141 * @return {Object} Props. 142 142 */ -
trunk/src/js/_enqueues/wp/widgets/media-video.js
r46800 r63600 88 88 * Map model props to media frame props. 89 89 * 90 * @param {Object} modelProps -Model props.90 * @param {Object} modelProps Model props. 91 91 * @return {Object} Media frame props. 92 92 */ -
trunk/src/js/_enqueues/wp/widgets/media.js
r63408 r63600 46 46 * @augments wp.media.controller.Library 47 47 * 48 * @param {Object} options -Options.48 * @param {Object} options Options. 49 49 * 50 50 * @return {void} … … 58 58 * Sync changes to the current display settings back into the current customized. 59 59 * 60 * @param {Backbone.Model} displaySettings -Modified display settings.60 * @param {Backbone.Model} displaySettings Modified display settings. 61 61 * @return {void} 62 62 */ … … 73 73 * settings. 74 74 * 75 * @param {Backbone.Model} model -Display settings model.75 * @param {Backbone.Model} model Display settings model. 76 76 * @return {Backbone.Model} Display settings model. 77 77 */ … … 103 103 * @since 4.9.0 104 104 * 105 * @param {Object} options -Options.105 * @param {Object} options Options. 106 106 * @return {void} 107 107 */ … … 138 138 * Set the disabled state on the Add to Widget button. 139 139 * 140 * @param {boolean} disabled -Disabled.140 * @param {boolean} disabled Disabled. 141 141 * @return {void} 142 142 */ … … 148 148 * Set or clear an error notice. 149 149 * 150 * @param {string} notice -Notice.150 * @param {string} notice Notice. 151 151 * @return {void} 152 152 */ … … 359 359 * Forked override of {wp.media.view.MediaFrame.Post#mainInsertToolbar()} to override text. 360 360 * 361 * @param {wp.Backbone.View} view -Toolbar view.361 * @param {wp.Backbone.View} view Toolbar view. 362 362 * @this {wp.media.controller.Library} 363 363 * @return {void} … … 394 394 * Forked override of {wp.media.view.MediaFrame.Post#mainEmbedToolbar()} to override text. 395 395 * 396 * @param {wp.Backbone.View} toolbar -Toolbar view.396 * @param {wp.Backbone.View} toolbar Toolbar view. 397 397 * @this {wp.media.controller.Library} 398 398 * @return {void} … … 487 487 * @abstract 488 488 * 489 * @param {Object} options -Options.490 * @param {Backbone.Model} options.model -Model.491 * @param {jQuery} options.el -Control field container element.492 * @param {jQuery} options.syncContainer -Container element where fields are synced for the server.489 * @param {Object} options Options. 490 * @param {Backbone.Model} options.model Model. 491 * @param {jQuery} options.el Control field container element. 492 * @param {jQuery} options.syncContainer Container element where fields are synced for the server. 493 493 * 494 494 * @return {void} … … 722 722 * Handle click on link to Media Library to open modal, such as the link that appears when in the missing attachment error notice. 723 723 * 724 * @param {jQuery.Event} event -Event.724 * @param {jQuery.Event} event Event. 725 725 * @return {void} 726 726 */ … … 820 820 * Get the instance props from the media selection frame. 821 821 * 822 * @param {wp.media.view.MediaFrame.Select} mediaFrame -Select frame.822 * @param {wp.media.view.MediaFrame.Select} mediaFrame Select frame. 823 823 * @return {Object} Props. 824 824 */ … … 869 869 * Map media frame props to model props. 870 870 * 871 * @param {Object} mediaFrameProps -Media frame props.871 * @param {Object} mediaFrameProps Media frame props. 872 872 * @return {Object} Model props. 873 873 */ … … 920 920 * Map model props to media frame props. 921 921 * 922 * @param {Object} modelProps -Model props.922 * @param {Object} modelProps Model props. 923 923 * @return {Object} Media frame props. 924 924 */ … … 1029 1029 * the appropriate data types (integers or booleans). 1030 1030 * 1031 * @param {string|Object} key -Attribute name or attribute pairs.1032 * @param {mixed|Object} [val] -Attribute value or options object.1033 * @param {Object} [options] -Options when attribute name and value are passed separately.1031 * @param {string|Object} key Attribute name or attribute pairs. 1032 * @param {mixed|Object} [val] Attribute value or options object. 1033 * @param {Object} [options] Options when attribute name and value are passed separately. 1034 1034 * @return {wp.mediaWidgets.MediaWidgetModel} This model. 1035 1035 */ … … 1120 1120 * @memberOf wp.mediaWidgets 1121 1121 * 1122 * @param {jQuery.Event} event -Event.1123 * @param {jQuery} widgetContainer -Widget container element.1122 * @param {jQuery.Event} event Event. 1123 * @param {jQuery} widgetContainer Widget container element. 1124 1124 * 1125 1125 * @return {void} … … 1257 1257 * @memberOf wp.mediaWidgets 1258 1258 * 1259 * @param {jQuery.Event} event -Event.1260 * @param {jQuery} widgetContainer -Widget container element.1259 * @param {jQuery.Event} event Event. 1260 * @param {jQuery} widgetContainer Widget container element. 1261 1261 * 1262 1262 * @return {void} -
trunk/src/js/_enqueues/wp/widgets/text.js
r63408 r63600 35 35 * @abstract 36 36 * 37 * @param {Object} options -Options.38 * @param {jQuery} options.el -Control field container element.39 * @param {jQuery} options.syncContainer -Container element where fields are synced for the server.37 * @param {Object} options Options. 38 * @param {jQuery} options.el Control field container element. 39 * @param {jQuery} options.syncContainer Container element where fields are synced for the server. 40 40 * 41 41 * @return {void} … … 377 377 * @memberOf wp.textWidgets 378 378 * 379 * @param {jQuery.Event} event -Event.380 * @param {jQuery} widgetContainer -Widget container element.379 * @param {jQuery.Event} event Event. 380 * @param {jQuery} widgetContainer Widget container element. 381 381 * 382 382 * @return {void} … … 485 485 * @memberOf wp.textWidgets 486 486 * 487 * @param {jQuery.Event} event -Event.488 * @param {jQuery} widgetContainer -Widget container element.487 * @param {jQuery.Event} event Event. 488 * @param {jQuery} widgetContainer Widget container element. 489 489 * @return {void} 490 490 */ -
trunk/src/js/media/controllers/state.js
r63516 r63600 7 7 * A state has an event-driven lifecycle: 8 8 * 9 * 'ready' triggers when a state is added to a state machine's collection.10 * 'activate' triggers when a state is activated by a state machine.11 * 'deactivate' triggers when a state is deactivated by a state machine.12 * 'reset' is not triggered automatically. It should be invoked by the13 * proper controller to reset the state to its default.9 * 'ready' triggers when a state is added to a state machine's collection. 10 * 'activate' triggers when a state is activated by a state machine. 11 * 'deactivate' triggers when a state is deactivated by a state machine. 12 * 'reset' is not triggered automatically. It should be invoked by the 13 * proper controller to reset the state to its default. 14 14 * 15 15 * @memberOf wp.media.controller … … 86 86 * @since 3.5.0 87 87 * @access private 88 */88 */ 89 89 _preActivate: function() { 90 90 this.active = true; -
trunk/src/js/media/models/attachment.js
r63598 r63600 116 116 * Saves attachment details using the `save-attachment-compat` action. 117 117 * 118 * @param {Object} data The properties to be saved.118 * @param {Object} data The properties to be saved. 119 119 * @param {Object} options Sync options. e.g. patch, wait, success, error. 120 120 * -
trunk/src/js/media/models/attachments.js
r63598 r63600 19 19 * @param {string} [options.props.orderby] Initial attribute key to order the collection by. 20 20 * @param {string} [options.props.query] Whether the collection is linked to an attachments query. 21 * @param {string} [options.observe] An attachments collection to observe and mirror.22 * @param {string} [options.filters] Filters to apply to the collection.21 * @param {string} [options.observe] An attachments collection to observe and mirror. 22 * @param {string} [options.filters] Filters to apply to the collection. 23 23 * 24 24 */ -
trunk/src/js/media/models/post-media.js
r43309 r63600 3 3 * 4 4 * Shared model class for audio and video. Updates the model after 5 * "Add Audio|Video Source" and "Replace Audio|Video" states return5 * "Add Audio|Video Source" and "Replace Audio|Video" states return 6 6 * 7 7 * @memberOf wp.media.model -
trunk/src/js/media/models/query.js
r63598 r63600 8 8 * 9 9 * Note: Do NOT change this.args after the query has been initialized. 10 * Things will break.10 * Things will break. 11 11 * 12 12 * @memberOf wp.media.model -
trunk/src/js/media/views/attachments/browser.js
r63516 r63600 188 188 189 189 /** 190 * @member {wp.media.view.Toolbar}191 */190 * @member {wp.media.view.Toolbar} 191 */ 192 192 this.toolbar = new wp.media.view.Toolbar( toolbarOptions ); 193 193 -
trunk/src/js/media/views/focus-manager.js
r63409 r63600 32 32 33 33 /** 34 * Determines which focus management mode to use.35 *36 * @since 5.3.037 *38 * @param {Object} event jQuery event object.39 *40 * @return {void}41 */34 * Determines which focus management mode to use. 35 * 36 * @since 5.3.0 37 * 38 * @param {Object} event jQuery event object. 39 * 40 * @return {void} 41 */ 42 42 focusManagementMode: function( event ) { 43 43 if ( this.mode === 'constrainTabbing' ) { -
trunk/tools/gutenberg/copy.js
r62645 r63600 35 35 * @typedef ScriptsConfig 36 36 * @type {object} 37 * @property {string} source -Gutenberg-relative source directory (e.g. `'scripts'`).38 * @property {string} destination -Subpath under `wp-includes/` where packages land (e.g. `'js/dist'`).39 * @property {boolean} copyDirectories -Whether to copy whole directories (with optional renames) as-is.40 * @property {Record<string, string>} directoryRenames -Map of source directory name → destination directory name.37 * @property {string} source Gutenberg-relative source directory (e.g. `'scripts'`). 38 * @property {string} destination Subpath under `wp-includes/` where packages land (e.g. `'js/dist'`). 39 * @property {boolean} copyDirectories Whether to copy whole directories (with optional renames) as-is. 40 * @property {Record<string, string>} directoryRenames Map of source directory name → destination directory name. 41 41 */ 42 42 … … 46 46 * @typedef BlockConfigSource 47 47 * @type {object} 48 * @property {string} name -Human-readable label (e.g. `'block-library'`, `'widgets'`).49 * @property {string} scripts -Gutenberg-relative path to the block scripts directory.50 * @property {string} styles -Gutenberg-relative path to the block styles directory.51 * @property {string} php -Gutenberg-relative path to the block PHP directory.48 * @property {string} name Human-readable label (e.g. `'block-library'`, `'widgets'`). 49 * @property {string} scripts Gutenberg-relative path to the block scripts directory. 50 * @property {string} styles Gutenberg-relative path to the block styles directory. 51 * @property {string} php Gutenberg-relative path to the block PHP directory. 52 52 */ 53 53 … … 57 57 * @typedef BlockConfig 58 58 * @type {object} 59 * @property {string} destination -Subpath under `wp-includes/` where blocks land (e.g. `'blocks'`).60 * @property {BlockConfigSource[]} sources -One entry per block family.59 * @property {string} destination Subpath under `wp-includes/` where blocks land (e.g. `'blocks'`). 60 * @property {BlockConfigSource[]} sources One entry per block family. 61 61 */ 62 62 … … 119 119 * Check if a block is experimental by reading its block.json. 120 120 * 121 * @param {string} blockJsonPath -Path to block.json file.121 * @param {string} blockJsonPath Path to block.json file. 122 122 * @return {boolean} True if block is experimental. 123 123 */ … … 141 141 * Blocks marked as `"__experimental": true` in a `block.json` file are excluded. 142 142 * 143 * @param {string} scriptsSrc -Path to the Gutenberg scripts source (e.g. `scripts/block-library`).143 * @param {string} scriptsSrc Path to the Gutenberg scripts source (e.g. `scripts/block-library`). 144 144 * @return {string[]} Stable block directory names. 145 145 */ … … 160 160 * Copy JavaScript files. 161 161 * 162 * @param {ScriptsConfig} config -Scripts configuration from `COPY_CONFIG.scripts`.162 * @param {ScriptsConfig} config Scripts configuration from `COPY_CONFIG.scripts`. 163 163 */ 164 164 function copyScripts( config ) { … … 249 249 * Copy `block.json` files for every stable block. 250 250 * 251 * @param {BlockConfig} config -Block configuration from `COPY_CONFIG.blocks`.251 * @param {BlockConfig} config Block configuration from `COPY_CONFIG.blocks`. 252 252 */ 253 253 function copyBlockJson( config ) { … … 284 284 * `*.php` helpers under `<block>/` (e.g. `navigation-link/shared/render-submenu-icon.php`). 285 285 * 286 * @param {BlockConfig} config -Block configuration from `COPY_CONFIG.blocks`.286 * @param {BlockConfig} config Block configuration from `COPY_CONFIG.blocks`. 287 287 */ 288 288 function copyBlockPhp( config ) { … … 339 339 * Copy per-block CSS files for every stable block. 340 340 * 341 * @param {BlockConfig} config -Block configuration from `COPY_CONFIG.blocks`.341 * @param {BlockConfig} config Block configuration from `COPY_CONFIG.blocks`. 342 342 */ 343 343 function copyBlockStyles( config ) { … … 392 392 * Recursively process directory to find .asset.php files. 393 393 * 394 * @param {string} dir -Directory to process.395 * @param {string} baseDir -Base directory for relative paths.394 * @param {string} dir Directory to process. 395 * @param {string} baseDir Base directory for relative paths. 396 396 */ 397 397 function processDirectory( dir, baseDir ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)