Changeset 63457
- Timestamp:
- 09/03/2026 11:50:46 PM (2 months ago)
- Location:
- trunk/src/js/_enqueues/wp/customize
- Files:
-
- 4 edited
-
preview-nav-menus.js (modified) (12 diffs)
-
preview-widgets.js (modified) (11 diffs)
-
preview.js (modified) (13 diffs)
-
selective-refresh.js (modified) (31 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/customize/preview-nav-menus.js
r48650 r63457 6 6 7 7 /** @namespace wp.customize.navMenusPreview */ 8 9 /** 10 * @param {JQueryStatic} $ The jQuery object. 11 * @param {_.UnderscoreStatic} _ The Underscore.js object. 12 * @param {Object} wp The WordPress global object. 13 * @param {Object} api The Customizer API. 14 */ 8 15 wp.customize.navMenusPreview = wp.customize.MenusCustomizerPreview = ( function( $, _, wp, api ) { 9 16 'use strict'; … … 91 98 * Constructor. 92 99 * 100 * The nav menu arguments are normally given as the container context, which is what the 101 * partial is constructed with when the document is scanned, and they may also be passed 102 * in the params. Either way they have to be present and to carry an args_hmac matching 103 * the one named in the ID, since the constructor throws when they do not. 104 * 93 105 * @since 4.5.0 94 * @param {string} id - Partial ID. 95 * @param {Object} options 96 * @param {Object} options.params 97 * @param {Object} options.params.navMenuArgs 98 * @param {string} options.params.navMenuArgs.args_hmac 99 * @param {string} [options.params.navMenuArgs.theme_location] 100 * @param {number} [options.params.navMenuArgs.menu] 101 * @param {Object} [options.constructingContainerContext] 106 * 107 * @param {string} id Partial ID. 108 * @param {Object} options Options. 109 * @param {Object} options.params Parameters for the partial. 110 * @param {Object} options.params.navMenuArgs Arguments the nav menu was rendered with. 111 * @param {string} options.params.navMenuArgs.args_hmac HMAC of those arguments, which has to match the ID. 112 * @param {string} [options.params.navMenuArgs.theme_location] Theme location the menu is assigned to. 113 * @param {number} [options.params.navMenuArgs.menu] ID of the menu. 114 * @param {Object} [options.constructingContainerContext] Context of the container element, used as the nav 115 * menu arguments when no params are supplied. 102 116 */ 103 117 initialize: function( id, options ) { … … 132 146 * 133 147 * @since 4.5.0 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.137 * @return {boolean} 148 * @param {wp.customize.Value|string} setting Object or ID. 149 * @param {number|Object|false|null} newValue New value, or null if the setting was just removed. 150 * @param {number|Object|false|null} oldValue Old value, or null if the setting was just added. 151 * @return {boolean} True if the setting is related to this partial, false otherwise. 138 152 */ 139 153 isRelatedSetting: function( setting, newValue, oldValue ) { … … 211 225 * @since 4.5.0 212 226 * 213 * @return { Promise}227 * @return {JQuery.Promise<*>} Promise that is resolved when the refresh is complete, or rejected if the partial is no longer associated with a menu. 214 228 */ 215 229 refresh: function() { … … 235 249 * 236 250 * @inheritdoc 237 * @param {wp.customize.selectiveRefresh.Placement} placement 251 * @param {wp.customize.selectiveRefresh.Placement} placement The placement to render into. 238 252 */ 239 253 renderContent: function( placement ) { … … 264 278 * Request full refresh if there are nav menu instances that lack partials which also match the supplied args. 265 279 * 266 * @param {Object} navMenuInstanceArgs 280 * @since 4.5.0 281 * 282 * @param {Object} navMenuInstanceArgs Arguments for a nav menu instance, which may include menu and/or theme_location. 283 * @return {boolean} Whether a full refresh was requested. 267 284 */ 268 285 self.handleUnplacedNavMenuInstances = function( navMenuInstanceArgs ) { … … 283 300 * @since 4.5.0 284 301 * 285 * @param {wp.customize.Value} setting 286 * @param {Object} [options] 287 * @param {boolean} options.fireWhether to invoke the callback after binding.288 * This is used when a dynamic setting is added.302 * @param {wp.customize.Value} setting The setting to listen to. 303 * @param {Object} [options] Options. 304 * @param {boolean} [options.fire] Whether to invoke the callback after binding. 305 * This is used when a dynamic setting is added. 289 306 * @return {boolean} Whether the setting was bound. 290 307 */ … … 331 348 * @since 4.5.0 332 349 * 333 * @param {wp.customize.Value} setting 350 * @param {wp.customize.Value} setting The setting to stop listening to. 351 * @return {void} 334 352 */ 335 353 self.unbindSettingListener = function( setting ) { … … 345 363 * 346 364 * @this {wp.customize.Value} 365 * @return {void} 347 366 */ 348 367 self.onChangeNavMenuSetting = function() { … … 374 393 * @param {Object} oldItem Old value for nav_menu_item[] setting. 375 394 * @this {wp.customize.Value} 395 * @return {void} 376 396 */ 377 397 self.onChangeNavMenuItemSetting = function( newItem, oldItem ) { … … 389 409 * 390 410 * @this {wp.customize.Value} 411 * @return {void} 391 412 */ 392 413 self.onChangeNavMenuLocationsSetting = function() { … … 413 434 * 414 435 * @since 4.5.0 436 * 437 * @return {void} 415 438 */ 416 439 self.highlightControls = function() { -
trunk/src/js/_enqueues/wp/customize/preview-widgets.js
r48110 r63457 12 12 * @namespace wp.customize.widgetsPreview 13 13 * 14 * @param { jQuery}$ The jQuery object.15 * @param { Object} _ The utilities library.16 * @param {Object} wp Current WordPress environment instance.17 * @param {Object} api Information from theAPI.14 * @param {JQueryStatic} $ The jQuery object. 15 * @param {_.UnderscoreStatic} _ The Underscore.js object. 16 * @param {Object} wp The WordPress global object. 17 * @param {Object} api The Customizer API. 18 18 * 19 19 * @return {Object} Widget-related variables. … … 94 94 * @memberOf wp.customize.widgetsPreview 95 95 * 96 * @param {string} id The partial's ID. 97 * @param {Object} options Options used to initialize the partial's 98 * instance. 99 * @param {Object} options.params The options parameters. 96 * @param {string} id The partial's ID. 97 * @param {Object} [options] Options used to initialize the partial's instance. 98 * @param {Object} [options.params] The options parameters. 100 99 */ 101 100 initialize: function( id, options ) { … … 125 124 * @since 4.5.0 126 125 * 127 * @return { Promise|void} Either a promise postponing the refresh, or void.126 * @return {JQuery.Promise<*>} Promise for the request to render the partial. 128 127 */ 129 128 refresh: function() { … … 144 143 * 145 144 * @inheritDoc 146 * @param {wp.customize.selectiveRefresh.Placement} placement The placement 147 * function. 145 * @param {wp.customize.selectiveRefresh.Placement} placement The placement to render into. 148 146 * 149 147 * @return {void} … … 165 163 * @since 4.5.0 166 164 * 167 * @c lass165 * @constructs 168 166 * @augments wp.customize.selectiveRefresh.Partial 169 167 * … … 171 169 * @alias wp.customize.widgetsPreview.SidebarPartial 172 170 * 173 * @param {string} id The partial's ID.174 * @param {Object} optionsOptions used to initialize the partial's instance.175 * @param {Object} options.paramsThe options parameters.171 * @param {string} id The partial's ID. 172 * @param {Object} [options] Options used to initialize the partial's instance. 173 * @param {Object} [options.params] The options parameters. 176 174 */ 177 175 initialize: function( id, options ) { … … 294 292 * @since 4.5.0 295 293 * 296 * @return { Array} An array containing placement objects for each of the297 * dynamicsidebar boundary nodes.294 * @return {wp.customize.selectiveRefresh.Placement[]} A placement for each of the dynamic 295 * sidebar boundary nodes. 298 296 */ 299 297 placements: function() { … … 321 319 * @throws {Error} If the API doesn't pass an array of widget IDs. 322 320 * 323 * @return { Array} A shallow copy of the array containing widget IDs.321 * @return {string[]} A shallow copy of the array containing widget IDs. 324 322 */ 325 323 getWidgetIds: function() { … … 345 343 * @since 4.5.0 346 344 * 347 * @return {Array.<wp.customize.selectiveRefresh.Placement>} List of placements 348 * that were reflowed. 345 * @return {wp.customize.selectiveRefresh.Placement[]} List of placements that were reflowed. 349 346 */ 350 347 reflowWidgets: function() { … … 478 475 * @since 4.5.0 479 476 * 480 * @param { Array} newWidgetIds New widget IDs.481 * @param { Array} oldWidgetIds Old widget IDs.477 * @param {string[]} newWidgetIds New widget IDs. 478 * @param {string[]} oldWidgetIds Old widget IDs. 482 479 * 483 480 * @return {void} … … 536 533 * @since 4.5.0 537 534 * 538 * @return { Promise} A promise postponing the refresh.535 * @return {JQuery.Promise<*>} Promise resolved once the sidebar's widgets have been reflowed, or rejected when the sidebar has no placements. 539 536 */ 540 537 refresh: function() { -
trunk/src/js/_enqueues/wp/customize/preview.js
r60522 r63457 1 /* 1 /** 2 * @output wp-includes/js/customize-preview.js 3 */ 4 5 /** 2 6 * Script run inside a Customizer preview frame. 3 7 * 4 * @output wp-includes/js/customize-preview.js 8 * @param {Object} wp The WordPress global object. 9 * @param {JQueryStatic} $ The jQuery object. 5 10 */ 6 (function( exports, $ ){11 (function( wp, $ ){ 7 12 var api = wp.customize, 8 13 debounce, … … 75 80 * Returns a debounced version of the function. 76 81 * 82 * @param {Function} fn Function to debounce. 83 * @param {number} delay Delay in milliseconds. 84 * @param {Object} [context] Context to invoke the function in. Defaults to the calling context. 77 85 * @todo Require Underscore.js for this file and retire this. 86 * 87 * @return {Function} Debounced function. 78 88 */ 79 89 debounce = function( fn, delay, context ) { 80 90 var timeout; 81 return function() { 82 var args = arguments; 83 91 return function( ...args ) { 84 92 context = context || this; 85 93 … … 96 104 * @alias wp.customize.Preview 97 105 * 98 * @c onstructor106 * @class 99 107 * @augments wp.customize.Messenger 100 108 * @augments wp.customize.Class … … 103 111 api.Preview = api.Messenger.extend(/** @lends wp.customize.Preview.prototype */{ 104 112 /** 105 * @param {Object} params -Parameters to configure the messenger.106 * @param {Object} options -Extend any instance parameter or method with this object.113 * @param {Object} params Parameters to configure the messenger. 114 * @param {Object} options Extend any instance parameter or method with this object. 107 115 */ 108 116 initialize: function( params, options ) { … … 143 151 * @access public 144 152 * 145 * @param {jQuery.Event} event Event. 153 * @param {JQuery.Event} event Event. 154 * @return {void} 146 155 */ 147 156 handleLinkClick: function( event ) { … … 189 198 * @access public 190 199 * 191 * @param {jQuery.Event} event Event. 200 * @param {JQuery.Event} event Event. 201 * @return {void} 192 202 */ 193 203 handleFormSubmit: function( event ) { … … 233 243 * @since 4.7.0 234 244 * @access protected 235 * @access private236 245 * 237 246 * @return {void} … … 273 282 * @access public 274 283 * 275 * @param {HTMLAnchorElement|HTMLAreaElement} element Link element.276 * @param {string} element.searchQuery string.277 * @param {string} element.pathnamePath.278 * @param {string} element.hostHost.279 * @param {Object} [options]280 * @param {Object} [options.allowAdminAjax=false] Allow admin-ajax.php requests.284 * @param {HTMLAnchorElement|HTMLAreaElement} element Link element. 285 * @param {string} element.search Query string. 286 * @param {string} element.pathname Path. 287 * @param {string} element.host Host. 288 * @param {Object} [options] Options. 289 * @param {Object} [options.allowAdminAjax=false] Allow admin-ajax.php requests. 281 290 * @return {boolean} Is appropriate for changeset link. 282 291 */ … … 329 338 * @access protected 330 339 * 331 * @param {HTMLAnchorElement|HTMLAreaElement} element Link element.332 * @param {string} element.searchQuery string.333 * @param {string} element.hostHost.334 * @param {string} element.protocol Protocol.340 * @param {HTMLAnchorElement|HTMLAreaElement} element Link element. 341 * @param {string} element.search Query string. 342 * @param {string} element.host Host. 343 * @param {string} element.protocol Protocol. 335 344 * @return {void} 336 345 */ … … 400 409 * Rewrite Ajax requests to inject customizer state. 401 410 * 402 * @param {Object} optionsOptions.403 * @param {string} options.typeType.404 * @param {string} options.urlURL.405 * @param {Object} originalOptions Original options.406 * @param {XMLHttpRequest} xhr XHR.411 * @param {Object} options Options. 412 * @param {string} options.type Type. 413 * @param {string} options.url URL. 414 * @param {Object} originalOptions Original options. 415 * @param {XMLHttpRequest} xhr XHR. 407 416 * @return {void} 408 417 */ … … 715 724 * Create/update a setting value. 716 725 * 717 * @param {string} id -Setting ID.718 * @param {*} value -Setting value.719 * @param {boolean} [createDirty] -Whether to create a setting as dirty. Defaults to false.726 * @param {string} id Setting ID. 727 * @param {*} value Setting value. 728 * @param {boolean} [createDirty] Whether to create a setting as dirty. Defaults to false. 720 729 */ 721 730 setValue = function( id, value, createDirty ) { … … 792 801 * Handle update to changeset UUID. 793 802 * 794 * @param {string} uuid -UUID.803 * @param {string} uuid UUID. 795 804 * @return {void} 796 805 */ … … 889 898 } ); 890 899 891 api.when.apply( api, bg ).done( function( ) {892 $.each( arguments, function() {900 api.when.apply( api, bg ).done( function( ...settings ) { 901 $.each( settings, function() { 893 902 this.bind( api.settingPreviewHandlers.background ); 894 903 }); -
trunk/src/js/_enqueues/wp/customize/selective-refresh.js
r57987 r63457 6 6 7 7 /** @namespace wp.customize.selectiveRefresh */ 8 9 /** 10 * @param {JQueryStatic} $ The jQuery object. 11 * @param {Object} api The Customizer API. 12 */ 8 13 wp.customize.selectiveRefresh = ( function( $, api ) { 9 14 'use strict'; … … 31 36 * 32 37 * @memberOf wp.customize.selectiveRefresh 38 * @alias wp.customize.selectiveRefresh.Partial 33 39 * 34 40 * @see PHP class WP_Customize_Partial. … … 38 44 * @since 4.5.0 39 45 */ 40 Partial = self.Partial = api.Class.extend(/** @lends wp.customize. SelectiveRefresh.Partial.prototype */{46 Partial = self.Partial = api.Class.extend(/** @lends wp.customize.selectiveRefresh.Partial.prototype */{ 41 47 42 48 id: null, … … 46 52 * 47 53 * @since 4.9.0 48 * @ var {object}54 * @member {Object} 49 55 */ 50 56 defaults: { … … 60 66 * @since 4.5.0 61 67 * 62 * @param {string} id -Unique identifier for the partial instance.63 * @param {Object} options -Options hash for the partial instance.64 * @param {string} options.type - Type of partial (e.g. nav_menu, widget, etc)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.67 * @param {string} options.primarySetting -The ID for the primary setting the partial renders.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.68 * @param {string} id Unique identifier for the partial instance. 69 * @param {Object} [options] Options hash for the partial instance. 70 * @param {string} [options.type] Type of partial (e.g. nav_menu, widget, etc.). 71 * @param {string} [options.selector] jQuery selector to find the container element in the page. 72 * @param {string[]} [options.settings] The IDs for the settings the partial relates to. 73 * @param {string} [options.primarySetting] The ID for the primary setting the partial renders. 74 * @param {boolean} [options.fallbackRefresh] Whether to refresh the entire preview in case of a partial refresh failure. 75 * @param {Object} [options.params] Deprecated wrapper for the above properties. 70 76 */ 71 77 initialize: function( id, options ) { … … 120 126 * @access public 121 127 * 122 * @param { Placement} placement The placement container element.128 * @param {wp.customize.selectiveRefresh.Placement} placement The placement container element. 123 129 * @return {void} 124 130 */ … … 149 155 * @access public 150 156 * 151 * @param { Placement} placementThe placement for the partial.152 * @param { jQuery}$editShortcut The shortcut element as a jQuery object.157 * @param {wp.customize.selectiveRefresh.Placement} placement The placement for the partial. 158 * @param {JQuery} $editShortcut The shortcut element as a jQuery object. 153 159 * @return {void} 154 160 */ … … 230 236 * @access public 231 237 * 232 * @return { jQuery} The edit shortcut button element.238 * @return {JQuery} The edit shortcut button element. 233 239 */ 234 240 createEditShortcut: function() { … … 254 260 * @since 4.5.0 255 261 * 256 * @return { Array.<Placement>}262 * @return {wp.customize.selectiveRefresh.Placement[]} The placements for this partial in the document. 257 263 */ 258 264 placements: function() { … … 286 292 * @since 4.5.0 287 293 * 288 * @return {string[]} 294 * @return {string[]} The setting IDs related to this partial. 289 295 */ 290 296 settings: function() { … … 304 310 * @since 4.5.0 305 311 * 306 * @param {wp.customize.Value|string} setting ID or object for setting.312 * @param {wp.customize.Value|string} setting ID or object for setting. 307 313 * @return {boolean} Whether the setting is related to the partial. 308 314 */ … … 345 351 * @since 4.5.0 346 352 * 347 * @param { Placement} placement353 * @param {wp.customize.selectiveRefresh.Placement} placement The placement to prepare. 348 354 */ 349 355 preparePlacement: function( placement ) { … … 365 371 * 366 372 * @this {wp.customize.selectiveRefresh.Partial} 367 * @return { jQuery.Promise}373 * @return {JQuery.Promise<*>} Promise for the request to render the partial. 368 374 */ 369 375 refresh: function() { … … 405 411 * @since 4.5.0 406 412 * 407 * @param { Placement} placement408 * @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.413 * @param {wp.customize.selectiveRefresh.Placement} placement The placement to render into. 414 * @param {Element|JQuery} [placement.container] This param will be empty if there was no element matching the selector. 415 * @param {string|Object|boolean} placement.addedContent Rendered HTML content, a data object for JS templates to render, or false if no render. 416 * @param {Object} [placement.context] Optional context information about the container. 411 417 * @return {boolean} Whether the rendering was successful and the fallback was not invoked. 412 418 */ … … 527 533 * 528 534 * @memberOf wp.customize.selectiveRefresh 529 * 530 * @class Placement 535 * @alias wp.customize.selectiveRefresh.Placement 536 * 537 * @class 531 538 * @augments wp.customize.Class 532 539 * @since 4.5.0 533 540 */ 534 self.Placement = Placement = api.Class.extend(/** @lends wp.customize.selectiveRefresh. prototype */{541 self.Placement = Placement = api.Class.extend(/** @lends wp.customize.selectiveRefresh.Placement.prototype */{ 535 542 536 543 /** 537 544 * The partial with which the container is associated. 538 545 * 539 * @ param{wp.customize.selectiveRefresh.Partial}546 * @member {wp.customize.selectiveRefresh.Partial} 540 547 */ 541 548 partial: null, … … 548 555 * This container element itself will be replaced for partials that 549 556 * have containerInclusive param defined as true. 557 * 558 * @member {JQuery} 550 559 */ 551 560 container: null, … … 557 566 * This is primarily useful for widget sidebars which do not have intrinsic containers, but 558 567 * for which an HTML comment is output before to mark the starting position. 568 * 569 * @member {Node} 559 570 */ 560 571 startNode: null, … … 566 577 * This is primarily useful for widget sidebars which do not have intrinsic containers, but 567 578 * for which an HTML comment is output before to mark the ending position. 579 * 580 * @member {Node} 568 581 */ 569 582 endNode: null, … … 575 588 * in order to render the partial properly. 576 589 * 577 * @ param {object}590 * @member {Object} 578 591 */ 579 592 context: null, … … 582 595 * The content for the partial when refreshed. 583 596 * 584 * @ param {string}597 * @member {string|Object|boolean} 585 598 */ 586 599 addedContent: null, … … 590 603 * 591 604 * If the partial is containerInclusive, then the removedNodes will be 592 * the single Element that wasthe partial's former placement. If the605 * the jQuery object for the partial's former placement. If the 593 606 * partial is not containerInclusive, then the removedNodes will be a 594 * documentFragment containing the nodes removed.595 * 596 * @ param {Element|DocumentFragment}607 * DocumentFragment containing the nodes removed. 608 * 609 * @member {JQuery|DocumentFragment} 597 610 */ 598 611 removedNodes: null, … … 603 616 * @since 4.5.0 604 617 * 605 * @param {Object} args606 * @param { Partial} args.partial607 * @param { jQuery|Element} [args.container]608 * @param {Node} [args.startNode]609 * @param {Node} [args.endNode]610 * @param {Object} [args.context]611 * @param {string } [args.addedContent]612 * @param { jQuery|DocumentFragment} [args.removedNodes]618 * @param {Object} args The placement properties. 619 * @param {wp.customize.selectiveRefresh.Partial} args.partial The partial with which the container is associated. 620 * @param {JQuery|Element} [args.container] DOM element which contains the placement's contents. 621 * @param {Node} [args.startNode] DOM node for the initial boundary of the placement. 622 * @param {Node} [args.endNode] DOM node for the terminal boundary of the placement. 623 * @param {Object} [args.context] Context data included in the request in order to render the partial. 624 * @param {string|Object|boolean} [args.addedContent] The content for the partial when refreshed. 625 * @param {JQuery|DocumentFragment} [args.removedNodes] DOM node(s) removed when the partial is refreshed. 613 626 */ 614 627 initialize: function( args ) { … … 646 659 * @see wp.customize.previewer.query() 647 660 * 648 * @return {Object} 661 * @return {Object} POST vars for a Customizer preview request. 649 662 */ 650 663 self.getCustomizeQuery = function() { … … 669 682 * 670 683 * @since 4.5.0 671 * @type {Object <string, { deferred: jQuery.Promise, partial: wp.customize.selectiveRefresh.Partial }>}684 * @type {Object.<string, { deferred: JQuery.Promise<*>, partial: wp.customize.selectiveRefresh.Partial }>} 672 685 */ 673 686 self._pendingPartialRequests = {}; … … 686 699 * 687 700 * @since 4.5.0 688 * @type { jQuery.jqXHR|null}701 * @type {JQuery.jqXHR|null} 689 702 * @private 690 703 */ … … 708 721 * @since 4.5.0 709 722 * 710 * @param {wp.customize.selectiveRefresh.Partial} partial 711 * @return { jQuery.Promise}723 * @param {wp.customize.selectiveRefresh.Partial} partial The partial to re-render. 724 * @return {JQuery.Promise<*>} Promise for the request to render the partial. 712 725 */ 713 726 self.requestPartial = function( partial ) { … … 857 870 * @since 4.5.0 858 871 * 859 * @param { jQuery|HTMLElement} [rootElement]860 * @param { object} [options]861 * @param {boolean =true} [options.triggerRendered]872 * @param {JQuery|HTMLElement} [rootElement] Element to scan for partials. Defaults to the document element. 873 * @param {Object} [options] Options. 874 * @param {boolean} [options.triggerRendered=true] Whether to trigger the rendered event for the placements found. 862 875 */ 863 876 self.addPartials = function( rootElement, options ) { … … 970 983 * @this {wp.customize.Values} 971 984 * 972 * @param {wp.customize.Setting} setting 985 * @param {wp.customize.Setting} setting The setting that was added. 973 986 */ 974 987 watchSettingChange = function( setting ) { … … 983 996 * @this {wp.customize.Values} 984 997 * 985 * @param {wp.customize.Setting} setting 998 * @param {wp.customize.Setting} setting The setting that was removed. 986 999 */ 987 1000 unwatchSettingChange = function( setting ) { … … 1017 1030 * Handle rendering of partials. 1018 1031 * 1019 * @param { api.selectiveRefresh.Placement} placement1032 * @param {wp.customize.selectiveRefresh.Placement} placement The placement whose content was rendered. 1020 1033 */ 1021 1034 api.selectiveRefresh.bind( 'partial-content-rendered', function( placement ) { … … 1028 1041 * Handle setting validities in partial refresh response. 1029 1042 * 1030 * @param { object} dataResponse data.1031 * @param { object} data.setting_validities Setting validities.1043 * @param {Object} data Response data. 1044 * @param {Object} data.setting_validities Setting validities. 1032 1045 */ 1033 1046 api.selectiveRefresh.bind( 'render-partials-response', function handleSettingValiditiesResponse( data ) {
Note:
See TracChangeset
for help on using the changeset viewer.