Make WordPress Core

Ticket #40831: 40831.diff

File 40831.diff, 2.3 KB (added by shailu25, 10 months ago)

Patch Refreshed.

  • src/js/_enqueues/wp/customize/base.js

    diff --git a/src/js/_enqueues/wp/customize/base.js b/src/js/_enqueues/wp/customize/base.js
    index 4afaa94557..d0fe1801a0 100644
    a b window.wp = window.wp || {}; 
    1717         * Similar to `goog.inherits`, but uses a hash of prototype properties and
    1818         * class properties to be extended.
    1919         *
    20          * @param object parent      Parent class constructor to inherit from.
    21          * @param object protoProps  Properties to apply to the prototype for use as class instance properties.
    22          * @param object staticProps Properties to apply directly to the class constructor.
     20         * @param {object} parent      Parent class constructor to inherit from.
     21         * @param {object} protoProps  Properties to apply to the prototype for use as class instance properties.
     22         * @param {object} staticProps Properties to apply directly to the class constructor.
    2323         * @return child The subclassed constructor.
    2424         */
    2525        inherits = function( parent, protoProps, staticProps ) {
    window.wp = window.wp || {}; 
    108108        /**
    109109         * Creates a subclass of the class.
    110110         *
    111          * @param object protoProps Properties to apply to the prototype.
    112          * @param object staticProps Properties to apply directly to the class.
     111         * @param {object} protoProps Properties to apply to the prototype.
     112         * @param {object} classProp Properties to apply directly to the class.
    113113         * @return child The subclass.
    114114         */
    115115        api.Class.extend = function( protoProps, staticProps ) {
    window.wp = window.wp || {}; 
    557557        /**
    558558         * Cast a string to a jQuery collection if it isn't already.
    559559         *
    560          * @param {string|jQuery collection} element
     560         * @param {string|jQuery} element
    561561         */
    562562        api.ensure = function( element ) {
    563563                return typeof element === 'string' ? $( element ) : element;
  • src/js/_enqueues/wp/customize/loader.js

    diff --git a/src/js/_enqueues/wp/customize/loader.js b/src/js/_enqueues/wp/customize/loader.js
    index 2326f1f7df..9e92610683 100644
    a b window.wp = window.wp || {}; 
    106106                /**
    107107                 * Open the Customizer overlay for a specific URL.
    108108                 *
    109                  * @param string src URL to load in the Customizer.
     109                 * @param {string} src URL to load in the Customizer.
    110110                 */
    111111                open: function( src ) {
    112112