Make WordPress Core

Ticket #51488: 51488.patch

File 51488.patch, 1.4 KB (added by dilipbheda, 5 years ago)
  • src/js/_enqueues/admin/postbox.js

    diff --git a/src/js/_enqueues/admin/postbox.js b/src/js/_enqueues/admin/postbox.js
    index 7ae595e3ef..2408810823 100644
    a b  
    380380                                        /* `helper: 'clone'` is equivalent to `return element.clone();`
    381381                                         * Cloning a checked radio and then inserting that clone next to the original
    382382                                         * radio unchecks the original radio (since only one of the two can be checked).
    383                                          * We get around this by renaming the helper's inputs' name attributes so that,
     383                                         * We get around this by renaming the helper's input's name attributes so that,
    384384                                         * when the helper is inserted into the DOM for the sortable, no radios are
    385385                                         * duplicated, and no original radio gets unchecked.
    386386                                         */
  • src/js/_enqueues/wp/widgets/media.js

    diff --git a/src/js/_enqueues/wp/widgets/media.js b/src/js/_enqueues/wp/widgets/media.js
    index c53344133f..7a86f97a28 100644
    a b wp.mediaWidgets = ( function( $ ) { 
    10231023                 * Set attribute value(s).
    10241024                 *
    10251025                 * This is a wrapped version of Backbone.Model#set() which allows us to
    1026                  * cast the attribute values from the hidden inputs' string values into
     1026                 * cast the attribute values from the hidden input's string values into
    10271027                 * the appropriate data types (integers or booleans).
    10281028                 *
    10291029                 * @param {string|Object} key - Attribute name or attribute pairs.