Attachments - Version 3.1.2

Version Description

  • Fixed a regression that prevented successful migration of legacy Attachments data
Download this release

Release Info

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

Code changes from version 3.1.1 to 3.1.2

Files changed (5) hide show
  1. README.md +3 -0
  2. classes/class.attachments.php +1 -1
  3. index.php +1 -1
  4. readme.txt +4 -1
  5. views/options.php +1 -1
README.md CHANGED
@@ -250,6 +250,9 @@ Attachments uses WordPress' built in Media library for uploads and storage.
250
 
251
  <dl>
252
 
 
 
 
253
  <dt>3.1.1</dt>
254
  <dd>Fixed a Fatal Error when registering the text field</dd>
255
 
250
 
251
  <dl>
252
 
253
+ <dt>3.1.2</dt>
254
+ <dd>Fixed a regression that prevented successful migration of legacy Attachments data</dd>
255
+
256
  <dt>3.1.1</dt>
257
  <dd>Fixed a Fatal Error when registering the text field</dd>
258
 
classes/class.attachments.php CHANGED
@@ -56,7 +56,7 @@ if ( !class_exists( 'Attachments' ) ) :
56
  global $_wp_additional_image_sizes;
57
 
58
  // establish our environment variables
59
- $this->version = '3.1.1';
60
  $this->url = ATTACHMENTS_URL;
61
  $this->dir = ATTACHMENTS_DIR;
62
 
56
  global $_wp_additional_image_sizes;
57
 
58
  // establish our environment variables
59
+ $this->version = '3.1.2';
60
  $this->url = ATTACHMENTS_URL;
61
  $this->dir = ATTACHMENTS_DIR;
62
 
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.1.1
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.1.2
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: 3.5
7
- Stable tag: 3.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -95,6 +95,9 @@ Attachments uses WordPress' built in Media library for uploads and storage.
95
 
96
  == Changelog ==
97
 
 
 
 
98
  = 3.1.1 =
99
  * Fixed a Fatal Error when registering the text field
100
 
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: 3.5
7
+ Stable tag: 3.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
95
 
96
  == Changelog ==
97
 
98
+ = 3.1.2 =
99
+ * Fixed a regression that prevented successful migration of legacy Attachments data
100
+
101
  = 3.1.1 =
102
  * Fixed a Fatal Error when registering the text field
103
 
views/options.php CHANGED
@@ -106,7 +106,7 @@
106
  }
107
 
108
  // we're done! let's save everything in our new format
109
- $existing_attachments = version_compare( PHP_VERSION, '5.4.0', '>=' ) ? json_encode( $attachments, JSON_UNESCAPED_UNICODE ) : json_encode( $attachments );
110
 
111
  // save it to the database
112
  update_post_meta( $query->post->ID, 'attachments', $existing_attachments );
106
  }
107
 
108
  // we're done! let's save everything in our new format
109
+ $existing_attachments = version_compare( PHP_VERSION, '5.4.0', '>=' ) ? json_encode( $existing_attachments, JSON_UNESCAPED_UNICODE ) : json_encode( $existing_attachments );
110
 
111
  // save it to the database
112
  update_post_meta( $query->post->ID, 'attachments', $existing_attachments );