Files
wordpress-develop/src/wp-includes/js
Scott Taylor af71d22742 Add two properties to media.model.Attachments.propmap: include and exclude, which are aliases for post__in and post__not_in.
This allows you to instantiate a library that includes and/or excludes specific attachments by passing a single ID or an array of IDs.

Example usage:
{{{
wp.media({frame: 'post', library: {include: [414, 415]}}).open()
wp.media({frame: 'post', library: {include: 414}}).open()
wp.media({frame: 'post', library: {exclude: [414, 415]}}).open()
wp.media({frame: 'post', library: {exclude: 414}}).open()
}}}

Fixes #26587.


git-svn-id: https://develop.svn.wordpress.org/trunk@29759 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-23 03:37:06 +00:00
..
2014-02-22 15:41:50 +00:00
2014-09-21 18:51:41 +00:00
2014-03-29 23:57:13 +00:00
2014-02-13 07:33:29 +00:00
2013-11-15 04:41:51 +00:00
2013-12-28 23:52:04 +00:00