Attachments - Version 3.5.7

Version Description

  • Fixed a regression that prevented attaching multiple files at once
Download this release

Release Info

Developer jchristopher
Plugin Icon wp plugin Attachments
Version 3.5.7
Comparing to
See all releases

Code changes from version 3.5.6 to 3.5.7

Files changed (4) hide show
  1. classes/class.attachments.php +4 -1
  2. docs/changelog.md +2 -0
  3. index.php +1 -1
  4. readme.txt +4 -1
classes/class.attachments.php CHANGED
@@ -786,10 +786,13 @@ if ( ! class_exists( 'Attachments' ) ) :
786
  // Set the text of the button.
787
  text: button
788
  },
789
-
790
  // Enable filters
791
  states: [
792
  new wp.media.controller.Library({
 
 
 
793
  filterable: 'all'
794
  })
795
  ]
786
  // Set the text of the button.
787
  text: button
788
  },
789
+
790
  // Enable filters
791
  states: [
792
  new wp.media.controller.Library({
793
+ <?php if( $instance->limit < 0 || $instance->limit > 1 ) : ?>
794
+ multiple: true,
795
+ <?php endif; ?>
796
  filterable: 'all'
797
  })
798
  ]
docs/changelog.md CHANGED
@@ -3,6 +3,8 @@ This is a WordPress plugin. [Official download available on WordPress.org](http:
3
  ## [Docs TOC](TOC.md) / Changelog
4
 
5
  <dl>
 
 
6
  <dt>3.5.6</dt>
7
  <dd>Fixed an issue where changing an Attachment on more than one Attachment would continually update the first Attachment</dd>
8
  <dd>Media modal now includes filters (props marcochiesi)</dd>
3
  ## [Docs TOC](TOC.md) / Changelog
4
 
5
  <dl>
6
+ <dt>3.5.7</dt>
7
+ <dd>Fixed a regression that prevented attaching multiple files at once</dd>
8
  <dt>3.5.6</dt>
9
  <dd>Fixed an issue where changing an Attachment on more than one Attachment would continually update the first Attachment</dd>
10
  <dd>Media modal now includes filters (props marcochiesi)</dd>
index.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
7
  * Author: Jonathan Christopher
8
  * Author URI: http://mondaybynoon.com/
9
- * Version: 3.5.6
10
  * Text Domain: attachments
11
  * Domain Path: /languages/
12
  * License: GPLv2 or later
6
  * Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
7
  * Author: Jonathan Christopher
8
  * Author URI: http://mondaybynoon.com/
9
+ * Version: 3.5.7
10
  * Text Domain: attachments
11
  * Domain Path: /languages/
12
  * License: GPLv2 or later
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://mondaybynoon.com/donate/
4
  Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
5
  Requires at least: 3.0
6
  Tested up to: 4.2
7
- Stable tag: 3.5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -91,6 +91,9 @@ Please see [Issues on GitHub](https://github.com/jchristopher/attachments/issues
91
 
92
  Please see [Attachments' changelog on GitHub](https://github.com/jchristopher/attachments/docs/changelog.md)
93
 
 
 
 
94
  = 3.5.6 =
95
  * Fixed an issue where changing an Attachment on more than one Attachment would continually update the first Attachment
96
  * Media modal now includes filters (props marcochiesi)
4
  Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
5
  Requires at least: 3.0
6
  Tested up to: 4.2
7
+ Stable tag: 3.5.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
91
 
92
  Please see [Attachments' changelog on GitHub](https://github.com/jchristopher/attachments/docs/changelog.md)
93
 
94
+ = 3.5.7 =
95
+ * Fixed a regression that prevented attaching multiple files at once
96
+
97
  = 3.5.6 =
98
  * Fixed an issue where changing an Attachment on more than one Attachment would continually update the first Attachment
99
  * Media modal now includes filters (props marcochiesi)