From 5c04a9daef44171aceb60e23800881cc2e823b84 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 29 Nov 2012 01:06:21 +0000 Subject: [PATCH] In the gallery editor, don't stomp on custom shortcode attributes. Props koopersmith fixes #22627 git-svn-id: https://develop.svn.wordpress.org/trunk@22912 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/media-editor.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index 8cd63c9e31..1df67917fd 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -197,11 +197,7 @@ args.parent = attrs.id; // Collect the attributes that were not included in `args`. - others = {}; - _.filter( attrs, function( value, key ) { - if ( _.isUndefined( args[ key ] ) ) - others[ key ] = value; - }); + others = _.omit( attrs, 'id', 'ids', 'include', 'exclude', 'orderby', 'order' ); query = media.query( args ); query.gallery = new Backbone.Model( others );