In the gallery editor, don't stomp on custom shortcode attributes.

Props koopersmith
fixes #22627


git-svn-id: http://core.svn.wordpress.org/trunk@22912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren 2012-11-29 01:06:21 +00:00
parent a8d599eae5
commit c71519f791

View File

@ -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 );