mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-24 09:11:24 +01:00
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:
parent
a8d599eae5
commit
c71519f791
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user