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:
parent
dd35bb5d7b
commit
7b4cc75efb
@ -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 ];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user