Document Gallery - Version 4.1.6

Version Description

  • Enhancement: Added warning to plugins page when a PHP version < 5.3 is being used.
  • Bug Fix: Resolves a "class not found" error.
Download this release

Release Info

Developer dan.rossiter
Plugin Icon 128x128 Document Gallery
Version 4.1.6
Comparing to
See all releases

Code changes from version 4.1.4 to 4.1.6

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&currency_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.5
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.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.5 =
426
  * **Bug Fix:** For a subset of the users upgrading from `4.0` to `4.1.x`, the thumbnail images will have been corrupted
427
  during the upgrade process. This release addresses the problem.
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&currency_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.6
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.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.6 =
426
+ * **Enhancement:** Added warning to plugins page when a PHP version < 5.3 is being used.
427
+ * **Bug Fix:** Resolves a "class not found" error.
428
+
429
  = 4.1.5 =
430
  * **Bug Fix:** For a subset of the users upgrading from `4.0` to `4.1.x`, the thumbnail images will have been corrupted
431
  during the upgrade process. This release addresses the problem.
document-gallery.php CHANGED
@@ -5,14 +5,25 @@ 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.5
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.5' );
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  // define helper paths & URLs
18
  define( 'DG_BASENAME', plugin_basename( __FILE__ ) );
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.6
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.6' );
16
+
17
+ if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
18
+ add_action( 'admin_notices', 'dg_php_lt_three' );
19
+ function dg_php_lt_three() { ?>
20
+ <div class="error"><p>
21
+ <?php printf( __( 'Document Gallery requires PHP &ge; 5.3. Your server is running version %s.', 'document-gallery' ), PHP_VERSION ); ?>
22
+ </p></div>
23
+ <?php }
24
+
25
+ return;
26
+ }
27
 
28
  // define helper paths & URLs
29
  define( 'DG_BASENAME', plugin_basename( __FILE__ ) );
inc/thumbers/class-thumber-co-thumber.php CHANGED
@@ -6,7 +6,6 @@ include_once DG_PATH . 'inc/thumbers/thumber-co/class-thumber-client.php';
6
 
7
  add_filter( 'allowed_http_origin', array( 'DG_ThumberCoThumber', 'allowThumberWebhooks' ), 10, 2);
8
  add_filter( 'upload_mimes', array( 'DG_ThumberCoThumber', 'customMimeTypes' ) );
9
- add_action( 'admin_post_nopriv_' . DG_ThumberCoThumber::ThumberAction, array( DG_ThumberClient::getInstance(), 'receiveThumbResponse' ), 5, 0);
10
 
11
  class DG_ThumberCoThumber extends DG_AbstractThumber {
12
 
@@ -168,4 +167,6 @@ class DG_ThumberCoThumber extends DG_AbstractThumber {
168
  }
169
  }
170
 
 
 
171
  DG_ThumberCoThumber::init();
6
 
7
  add_filter( 'allowed_http_origin', array( 'DG_ThumberCoThumber', 'allowThumberWebhooks' ), 10, 2);
8
  add_filter( 'upload_mimes', array( 'DG_ThumberCoThumber', 'customMimeTypes' ) );
 
9
 
10
  class DG_ThumberCoThumber extends DG_AbstractThumber {
11
 
167
  }
168
  }
169
 
170
+ add_action( 'admin_post_nopriv_' . DG_ThumberCoThumber::ThumberAction, array( DG_ThumberClient::getInstance(), 'receiveThumbResponse' ), 5, 0);
171
+
172
  DG_ThumberCoThumber::init();