Scott Taylor e3eaed1c78 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.

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


git-svn-id: http://core.svn.wordpress.org/trunk@29531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-23 03:38:16 +00:00
..
2012-11-17 15:11:29 +00:00
2014-08-09 19:39:15 +00:00
2014-09-21 18:52:16 +00:00
2014-09-21 18:52:16 +00:00
2014-03-29 23:58:14 +00:00
2014-03-29 23:58:14 +00:00
2012-04-17 23:09:29 +00:00
2013-11-15 04:42:09 +00:00
2013-12-28 23:53:15 +00:00
2013-12-28 23:53:15 +00:00