mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-24 01:32:47 +00:00
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
This commit is contained in:
parent
a50c33bc44
commit
5c04a9daef
@ -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