From 7b4cc75efb5bc52ab4f9850ee481199a80330990 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 24 Feb 2014 13:00:01 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/media-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]; }