WordPress.org

Make WordPress Core

Changeset 27238


Ignore:
Timestamp:
02/24/2014 01:00:01 PM (8 years ago)
Author:
wonderboymusic
Message:

Access class directly instead of using this in the shortcodeAttrs method of any factory-generated wp.media.collection.

Fixes #27183.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-editor.js

    r27213 r27238  
    407407
    408408            // Remove default attributes from the shortcode.
    409             _.each( this.defaults, function( value, key ) {
     409            _.each( wp.media[prop].defaults, function( value, key ) {
    410410                if ( value === attrs[ key ] ) {
    411411                    delete attrs[ key ];
Note: See TracChangeset for help on using the changeset viewer.