Make WordPress Core

Ticket #27183: media-editor.js.patch

File media-editor.js.patch, 543 bytes (added by JohnConners, 11 years ago)

Explicitly using wp.media.gallery.defaults to remove default gallery attributes

  • wp-includes/js/media-editor.js

     
    405405                                });
    406406                        }
    407407
    408                         // Remove default attributes from the shortcode.
    409                         _.each( this.defaults, function( value, key ) {
     408                        // Remove default attributes from the shortcode.
     409                        _.each( wp.media.gallery.defaults, function( value, key ) {
    410410                                if ( value === attrs[ key ] ) {
    411411                                        delete attrs[ key ];
    412412                                }