diff --git a/src/wp-includes/js/media-editor.js b/src/wp-includes/js/media-editor.js index 703a1869cf..39d8774d5b 100644 --- a/src/wp-includes/js/media-editor.js +++ b/src/wp-includes/js/media-editor.js @@ -406,7 +406,7 @@ } // Remove default attributes from the shortcode. - _.each( this.defaults, function( value, key ) { + _.each( wp.media[prop].defaults, function( value, key ) { if ( value === attrs[ key ] ) { delete attrs[ key ]; }