Version Description
- Bug Fix: The handling of saving Thumber.co subscriptions was broken for some use cases. The logic has been updated to work correctly in all cases.
Download this release
Release Info
Developer | dan.rossiter |
Plugin | Document Gallery |
Version | 4.1.14 |
Comparing to | |
See all releases |
Code changes from version 4.1.13 to 4.1.14
- CHANGELOG.md +4 -0
- README.txt +5 -1
- document-gallery.php +2 -2
- inc/thumbers/thumber-co/class-thumber-client.php +4 -4
CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
# Changelog
|
2 |
|
|
|
|
|
|
|
|
|
3 |
## 4.1.13
|
4 |
* **Enhancement:** HostGator users were noticing an issue where HTTP connection failures would show up while Document
|
5 |
Gallery was enabled. This resulted in symptoms like not being able to update plugins. This release modifies behavior
|
1 |
# Changelog
|
2 |
|
3 |
+
## 4.1.14 =
|
4 |
+
* **Bug Fix:** The handling of saving [Thumber.co](https://thumber.co) subscriptions was broken for some use cases.
|
5 |
+
The logic has been updated to work correctly in all cases.
|
6 |
+
|
7 |
## 4.1.13
|
8 |
* **Enhancement:** HostGator users were noticing an issue where HTTP connection failures would show up while Document
|
9 |
Gallery was enabled. This resulted in symptoms like not being able to update plugins. This release modifies behavior
|
README.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: attachments, library, thumbnail, documents, gallery, word, pdf
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EE5LWRLG933EN&lc=US&item_name=Document%20Gallery%20Plugin&item_number=document%2dgallery¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 4.1.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -422,6 +422,10 @@ To see a list of features planned for the future as well as to propose your own
|
|
422 |
ideas for future Document Gallery development, take a look at our
|
423 |
[issue tracker](https://github.com/thenadz/document-gallery/issues).
|
424 |
|
|
|
|
|
|
|
|
|
425 |
= 4.1.13 =
|
426 |
* **Enhancement:** HostGator users were noticing an issue where HTTP connection failures would show up while Document
|
427 |
Gallery was enabled. This resulted in symptoms like not being able to update plugins. This release modifies behavior
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EE5LWRLG933EN&lc=US&item_name=Document%20Gallery%20Plugin&item_number=document%2dgallery¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 4.1.14
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
422 |
ideas for future Document Gallery development, take a look at our
|
423 |
[issue tracker](https://github.com/thenadz/document-gallery/issues).
|
424 |
|
425 |
+
= 4.1.14 =
|
426 |
+
* **Bug Fix:** The handling of saving [Thumber.co](https://thumber.co) subscriptions was broken for some use cases.
|
427 |
+
The logic has been updated to work correctly in all cases.
|
428 |
+
|
429 |
= 4.1.13 =
|
430 |
* **Enhancement:** HostGator users were noticing an issue where HTTP connection failures would show up while Document
|
431 |
Gallery was enabled. This resulted in symptoms like not being able to update plugins. This release modifies behavior
|
document-gallery.php
CHANGED
@@ -5,14 +5,14 @@ defined( 'WPINC' ) OR exit;
|
|
5 |
Plugin Name: Document Gallery
|
6 |
Plugin URI: http://wordpress.org/extend/plugins/document-gallery/
|
7 |
Description: Display non-images (and images) in gallery format on a page or post with the [dg] shortcode.
|
8 |
-
Version: 4.1.
|
9 |
Author: Dan Rossiter
|
10 |
Author URI: http://danrossiter.org/
|
11 |
License: GPLv3
|
12 |
Text Domain: document-gallery
|
13 |
*/
|
14 |
|
15 |
-
define( 'DG_VERSION', '4.1.
|
16 |
|
17 |
if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
|
18 |
add_action( 'admin_notices', 'dg_php_lt_three' );
|
5 |
Plugin Name: Document Gallery
|
6 |
Plugin URI: http://wordpress.org/extend/plugins/document-gallery/
|
7 |
Description: Display non-images (and images) in gallery format on a page or post with the [dg] shortcode.
|
8 |
+
Version: 4.1.14
|
9 |
Author: Dan Rossiter
|
10 |
Author URI: http://danrossiter.org/
|
11 |
License: GPLv3
|
12 |
Text Domain: document-gallery
|
13 |
*/
|
14 |
|
15 |
+
define( 'DG_VERSION', '4.1.14' );
|
16 |
|
17 |
if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
|
18 |
add_action( 'admin_notices', 'dg_php_lt_three' );
|
inc/thumbers/thumber-co/class-thumber-client.php
CHANGED
@@ -120,12 +120,12 @@ class DG_ThumberClient extends ThumberClient {
|
|
120 |
|
121 |
/**
|
122 |
* @param $update_options bool Optional. Whether the returned value should be updated in options array.
|
123 |
-
* @return
|
124 |
-
* name, monthly_cost, watermark, direct_upload, thumbs_per_hr_limit, file_size_limit, and thumb_size_limit.
|
125 |
*/
|
126 |
public function getSubscription($update_options = true) {
|
127 |
global $dg_options;
|
128 |
-
|
|
|
129 |
static $whitelist = array( 'direct_upload', 'file_size_limit', 'thumb_size_limit' );
|
130 |
$ret = array_intersect_key( (array)parent::getSubscription(), array_flip( $whitelist ) );
|
131 |
if ( $update_options ) {
|
@@ -134,7 +134,7 @@ class DG_ThumberClient extends ThumberClient {
|
|
134 |
}
|
135 |
}
|
136 |
|
137 |
-
return $
|
138 |
}
|
139 |
|
140 |
/**
|
120 |
|
121 |
/**
|
122 |
* @param $update_options bool Optional. Whether the returned value should be updated in options array.
|
123 |
+
* @return array Returns all MIME types that are supported by Thumber and WP.
|
|
|
124 |
*/
|
125 |
public function getSubscription($update_options = true) {
|
126 |
global $dg_options;
|
127 |
+
$ret = $dg_options['thumber-co']['subscription'];
|
128 |
+
if ( empty( $ret ) ) {
|
129 |
static $whitelist = array( 'direct_upload', 'file_size_limit', 'thumb_size_limit' );
|
130 |
$ret = array_intersect_key( (array)parent::getSubscription(), array_flip( $whitelist ) );
|
131 |
if ( $update_options ) {
|
134 |
}
|
135 |
}
|
136 |
|
137 |
+
return $ret;
|
138 |
}
|
139 |
|
140 |
/**
|