Media: Allow all galleries to be sortable. fixes #22488, see #21390.

git-svn-id: https://develop.svn.wordpress.org/trunk@22713 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-11-20 14:04:59 +00:00
parent 76c67989a7
commit 69f9e2a1bf
2 changed files with 19 additions and 0 deletions
+9
View File
@@ -320,6 +320,15 @@ var tb_position;
selection.gallery = attachments.gallery;
// Fetch the query's attachments, and then break ties from the
// query to allow for sorting.
selection.more().done( function() {
// Break ties with the query.
selection.props.set({ query: false });
selection.unmirror();
selection.props.unset('orderby');
});
return wp.media({
frame: 'post',
state: 'gallery-edit',