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

Fixes #27183.



git-svn-id: https://develop.svn.wordpress.org/trunk@27238 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-02-24 13:00:01 +00:00
parent dd35bb5d7b
commit 7b4cc75efb

View File

@ -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 ];
}