Document Gallery - Version 4.2.6

Version Description

  • Bug Fix: Document Gallery was impossible to uninstall on some WordPress systems. This is addressed now.
Download this release

Release Info

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

Code changes from version 4.2.5 to 4.2.6

Files changed (4) hide show
  1. CHANGELOG.md +3 -0
  2. README.txt +4 -1
  3. document-gallery.php +2 -2
  4. inc/class-setup.php +3 -1
CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
  # Changelog
2
 
 
 
 
3
  ## 4.2.5
4
  * **Bug Fix:** Resolves issue where visual editor gallery preview got stuck loading.
5
 
1
  # Changelog
2
 
3
+ ## 4.2.6
4
+ * **Bug Fix:** Document Gallery was impossible to uninstall on some WordPress systems. This is addressed now.
5
+
6
  ## 4.2.5
7
  * **Bug Fix:** Resolves issue where visual editor gallery preview got stuck loading.
8
 
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.6
7
- Stable tag: 4.2.5
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -422,6 +422,9 @@ 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.2.5 =
426
  * **Bug Fix:** Resolves issue where visual editor gallery preview got stuck loading.
427
 
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.6
7
+ Stable tag: 4.2.6
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.2.6 =
426
+ * **Bug Fix:** Document Gallery was impossible to uninstall on some WordPress systems. This is addressed now.
427
+
428
  = 4.2.5 =
429
  * **Bug Fix:** Resolves issue where visual editor gallery preview got stuck loading.
430
 
document-gallery.php CHANGED
@@ -5,14 +5,14 @@ defined( 'WPINC' ) OR exit;
5
  Plugin Name: Document Gallery
6
  Plugin URI: https://wordpress.org/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.2.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.2.5' );
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: https://wordpress.org/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.2.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.2.6' );
16
 
17
  if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
18
  add_action( 'admin_notices', 'dg_php_lt_three' );
inc/class-setup.php CHANGED
@@ -503,7 +503,9 @@ class DG_Setup {
503
  if ( ! current_user_can( 'activate_plugins' ) ) {
504
  return;
505
  }
506
- check_admin_referer( 'bulk-plugins' );
 
 
507
 
508
  $blogs = array( null );
509
 
503
  if ( ! current_user_can( 'activate_plugins' ) ) {
504
  return;
505
  }
506
+ // TODO: Unclear why this stopped working, but it is now never true,
507
+ // blocking uninstall, so has to go at least for now.
508
+ //check_admin_referer( 'bulk-plugins' );
509
 
510
  $blogs = array( null );
511