Skip to content

Commit

Permalink
In media.view.AttachmentFilters.All, make uploaded conditional up…
Browse files Browse the repository at this point in the history
…on `media.view.settings.post.id` and include a new filter: `unattached`.

Drop the `mime-types` filter and related class (which was added for Media Grid) and use `all` instead. 

Props ocean90, wonderboymusic.
Fixes #29065.

Built from https://develop.svn.wordpress.org/trunk@29426


git-svn-id: http://core.svn.wordpress.org/trunk@29204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
staylor committed Aug 7, 2014
1 parent 641da50 commit 8ed123c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 49 deletions.
2 changes: 1 addition & 1 deletion wp-includes/js/media-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
title: options.title,
content: 'browse',
contentUserSetting: false,
filterable: 'mime-types'
filterable: 'all'
})
]);
},
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/js/media-grid.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8ed123c

Please sign in to comment.