NextGEN Gallery – WordPress Gallery Plugin - Version 3.1.2

Version Description

  • 12.18.2018 =
  • Fixed: Variable mismatch error when using central gallery management pages
Download this release

Release Info

Developer photocrati
Plugin Icon 128x128 NextGEN Gallery – WordPress Gallery Plugin
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

changelog.txt CHANGED
@@ -1,6 +1,9 @@
1
  NextGEN Gallery
2
  by Imagely
3
 
 
 
 
4
  = V3.1.1 - 11.29.2018 =
5
  * Fixed: Don't enqueue block editor assets on frontend.
6
  * Fixed: Broken styling for column blocks
1
  NextGEN Gallery
2
  by Imagely
3
 
4
+ = V3.1.2 - 12.18.2018 =
5
+ * Fixed: Variable mismatch error when using central gallery management pages
6
+
7
  = V3.1.1 - 11.29.2018 =
8
  * Fixed: Don't enqueue block editor assets on frontend.
9
  * Fixed: Broken styling for column blocks
nggallery.php CHANGED
@@ -4,7 +4,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
4
  /**
5
  * Plugin Name: NextGEN Gallery
6
  * Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 23 million downloads.
7
- * Version: 3.1.1
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
@@ -674,7 +674,7 @@ class C_NextGEN_Bootstrap
674
  define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
675
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
676
  define('NGG_PLUGIN_STARTED_AT', microtime());
677
- define('NGG_PLUGIN_VERSION', '3.1.1');
678
 
679
  if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
680
  define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
4
  /**
5
  * Plugin Name: NextGEN Gallery
6
  * Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 23 million downloads.
7
+ * Version: 3.1.2
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
674
  define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
675
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
676
  define('NGG_PLUGIN_STARTED_AT', microtime());
677
+ define('NGG_PLUGIN_VERSION', '3.1.2');
678
 
679
  if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
680
  define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
products/photocrati_nextgen/modules/ngglegacy/admin/manage-galleries.php CHANGED
@@ -194,7 +194,7 @@ function nggallery_manage_gallery_main() {
194
  </form>
195
  <form id="editgalleries" class="nggform" method="POST" action="<?php echo nextgen_esc_url($ngg->manage_page->base_page . '&orderby=' . $orderby . '&order=' . $order . '&paged=' . $_GET['paged']); ?>" accept-charset="utf-8">
196
  <?php wp_nonce_field('ngg_bulkgallery') ?>
197
- <input type="hidden" name="page" value="manage-galleries" />
198
 
199
  <div class="tablenav top">
200
 
@@ -339,7 +339,7 @@ function nggallery_manage_gallery_main() {
339
  <div id="addGallery" style="display: none;" >
340
  <form id="form-tags" method="POST" accept-charset="utf-8">
341
  <?php wp_nonce_field('ngg_addgallery'); ?>
342
- <input type="hidden" name="page" value="manage-galleries" />
343
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
344
  <tr>
345
  <td>
@@ -369,7 +369,7 @@ function nggallery_manage_gallery_main() {
369
  <?php wp_nonce_field('ngg_thickbox_form') ?>
370
  <input type="hidden" id="resize_images_imagelist" name="TB_imagelist" value="" />
371
  <input type="hidden" id="resize_images_bulkaction" name="TB_bulkaction" value="" />
372
- <input type="hidden" name="page" value="manage-galleries" />
373
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
374
  <tr valign="top">
375
  <td>
@@ -398,7 +398,7 @@ function nggallery_manage_gallery_main() {
398
  <?php wp_nonce_field('ngg_thickbox_form') ?>
399
  <input type="hidden" id="new_thumbnail_imagelist" name="TB_imagelist" value="" />
400
  <input type="hidden" id="new_thumbnail_bulkaction" name="TB_bulkaction" value="" />
401
- <input type="hidden" name="page" value="manage-galleries" />
402
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
403
  <tr valign="top">
404
  <th align="left"><?php _e('Width x height (in pixel)','nggallery') ?></th>
194
  </form>
195
  <form id="editgalleries" class="nggform" method="POST" action="<?php echo nextgen_esc_url($ngg->manage_page->base_page . '&orderby=' . $orderby . '&order=' . $order . '&paged=' . $_GET['paged']); ?>" accept-charset="utf-8">
196
  <?php wp_nonce_field('ngg_bulkgallery') ?>
197
+ <input type="hidden" name="nggpage" value="manage-galleries" />
198
 
199
  <div class="tablenav top">
200
 
339
  <div id="addGallery" style="display: none;" >
340
  <form id="form-tags" method="POST" accept-charset="utf-8">
341
  <?php wp_nonce_field('ngg_addgallery'); ?>
342
+ <input type="hidden" name="nggpage" value="manage-galleries" />
343
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
344
  <tr>
345
  <td>
369
  <?php wp_nonce_field('ngg_thickbox_form') ?>
370
  <input type="hidden" id="resize_images_imagelist" name="TB_imagelist" value="" />
371
  <input type="hidden" id="resize_images_bulkaction" name="TB_bulkaction" value="" />
372
+ <input type="hidden" name="nggpage" value="manage-galleries" />
373
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
374
  <tr valign="top">
375
  <td>
398
  <?php wp_nonce_field('ngg_thickbox_form') ?>
399
  <input type="hidden" id="new_thumbnail_imagelist" name="TB_imagelist" value="" />
400
  <input type="hidden" id="new_thumbnail_bulkaction" name="TB_bulkaction" value="" />
401
+ <input type="hidden" name="nggpage" value="manage-galleries" />
402
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
403
  <tr valign="top">
404
  <th align="left"><?php _e('Width x height (in pixel)','nggallery') ?></th>
products/photocrati_nextgen/modules/ngglegacy/admin/manage-images.php CHANGED
@@ -332,7 +332,7 @@ jQuery(document).ready( function($) {
332
  <form id="updategallery" class="nggform" method="POST" action="<?php echo $ngg->manage_page->base_page . '&amp;mode=edit&amp;s=' . get_search_query(); ?>" accept-charset="utf-8">
333
 
334
  <?php wp_nonce_field('ngg_updategallery') ?>
335
- <input type="hidden" name="page" value="manage-images" />
336
 
337
  <!-- form#updategallery continues below end of if statement -->
338
 
@@ -348,7 +348,7 @@ jQuery(document).ready( function($) {
348
  <form id="updategallery" class="nggform" method="POST" action="<?php echo $ngg->manage_page->base_page . '&amp;mode=edit&amp;gid=' . $act_gid . '&amp;paged=' . esc_attr($_GET['paged']); ?>" accept-charset="utf-8">
349
 
350
  <?php wp_nonce_field('ngg_updategallery') ?>
351
- <input type="hidden" name="page" value="manage-images" />
352
 
353
  <?php if ( nggGallery::current_user_can( 'NextGEN Edit gallery options' )) : ?>
354
 
@@ -516,7 +516,7 @@ jQuery(document).ready( function($) {
516
  <?php wp_nonce_field('ngg_thickbox_form') ?>
517
  <input type="hidden" id="entertags_imagelist" name="TB_imagelist" value="" />
518
  <input type="hidden" id="entertags_bulkaction" name="TB_bulkaction" value="" />
519
- <input type="hidden" name="page" value="manage-images" />
520
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
521
  <tr>
522
  <th><?php _e("Enter the tags",'nggallery'); ?> : <input name="taglist" type="text" style="width:90%" value="" /></th>
@@ -539,7 +539,7 @@ jQuery(document).ready( function($) {
539
  <?php wp_nonce_field('ngg_thickbox_form') ?>
540
  <input type="hidden" id="selectgallery_imagelist" name="TB_imagelist" value="" />
541
  <input type="hidden" id="selectgallery_bulkaction" name="TB_bulkaction" value="" />
542
- <input type="hidden" name="page" value="manage-images" />
543
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
544
  <tr>
545
  <th>
@@ -575,7 +575,7 @@ jQuery(document).ready( function($) {
575
  <?php wp_nonce_field('ngg_thickbox_form') ?>
576
  <input type="hidden" id="resize_images_imagelist" name="TB_imagelist" value="" />
577
  <input type="hidden" id="resize_images_bulkaction" name="TB_bulkaction" value="" />
578
- <input type="hidden" name="page" value="manage-images" />
579
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
580
  <tr valign="top">
581
  <td>
@@ -604,7 +604,7 @@ jQuery(document).ready( function($) {
604
  <?php wp_nonce_field('ngg_thickbox_form') ?>
605
  <input type="hidden" id="new_thumbnail_imagelist" name="TB_imagelist" value="" />
606
  <input type="hidden" id="new_thumbnail_bulkaction" name="TB_bulkaction" value="" />
607
- <input type="hidden" name="page" value="manage-images" />
608
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
609
  <tr valign="top">
610
  <th align="left"><?php _e('Width x height (in pixel)','nggallery') ?></th>
332
  <form id="updategallery" class="nggform" method="POST" action="<?php echo $ngg->manage_page->base_page . '&amp;mode=edit&amp;s=' . get_search_query(); ?>" accept-charset="utf-8">
333
 
334
  <?php wp_nonce_field('ngg_updategallery') ?>
335
+ <input type="hidden" name="nggpage" value="manage-images" />
336
 
337
  <!-- form#updategallery continues below end of if statement -->
338
 
348
  <form id="updategallery" class="nggform" method="POST" action="<?php echo $ngg->manage_page->base_page . '&amp;mode=edit&amp;gid=' . $act_gid . '&amp;paged=' . esc_attr($_GET['paged']); ?>" accept-charset="utf-8">
349
 
350
  <?php wp_nonce_field('ngg_updategallery') ?>
351
+ <input type="hidden" name="nggpage" value="manage-images" />
352
 
353
  <?php if ( nggGallery::current_user_can( 'NextGEN Edit gallery options' )) : ?>
354
 
516
  <?php wp_nonce_field('ngg_thickbox_form') ?>
517
  <input type="hidden" id="entertags_imagelist" name="TB_imagelist" value="" />
518
  <input type="hidden" id="entertags_bulkaction" name="TB_bulkaction" value="" />
519
+ <input type="hidden" name="nggpage" value="manage-images" />
520
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
521
  <tr>
522
  <th><?php _e("Enter the tags",'nggallery'); ?> : <input name="taglist" type="text" style="width:90%" value="" /></th>
539
  <?php wp_nonce_field('ngg_thickbox_form') ?>
540
  <input type="hidden" id="selectgallery_imagelist" name="TB_imagelist" value="" />
541
  <input type="hidden" id="selectgallery_bulkaction" name="TB_bulkaction" value="" />
542
+ <input type="hidden" name="nggpage" value="manage-images" />
543
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
544
  <tr>
545
  <th>
575
  <?php wp_nonce_field('ngg_thickbox_form') ?>
576
  <input type="hidden" id="resize_images_imagelist" name="TB_imagelist" value="" />
577
  <input type="hidden" id="resize_images_bulkaction" name="TB_bulkaction" value="" />
578
+ <input type="hidden" name="nggpage" value="manage-images" />
579
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
580
  <tr valign="top">
581
  <td>
604
  <?php wp_nonce_field('ngg_thickbox_form') ?>
605
  <input type="hidden" id="new_thumbnail_imagelist" name="TB_imagelist" value="" />
606
  <input type="hidden" id="new_thumbnail_bulkaction" name="TB_bulkaction" value="" />
607
+ <input type="hidden" name="nggpage" value="manage-images" />
608
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
609
  <tr valign="top">
610
  <th align="left"><?php _e('Width x height (in pixel)','nggallery') ?></th>
products/photocrati_nextgen/modules/ngglegacy/admin/manage.php CHANGED
@@ -31,13 +31,13 @@ class nggManageGallery {
31
  }
32
  }
33
  // Should be only called via manage galleries overview
34
- if ( isset($_POST['page']) && $_POST['page'] == 'manage-galleries' )
35
  $this->post_processor_galleries();
36
  // Should be only called via a edit single gallery page
37
- if ( isset($_POST['page']) && $_POST['page'] == 'manage-images' )
38
  $this->post_processor_images();
39
  // Should be called via a publish dialog
40
- if ( isset($_POST['page']) && $_POST['page'] == 'publish-post' )
41
  $this->publish_post();
42
 
43
  //Look for other POST process
31
  }
32
  }
33
  // Should be only called via manage galleries overview
34
+ if ( isset($_POST['nggpage']) && $_POST['nggpage'] == 'manage-galleries' )
35
  $this->post_processor_galleries();
36
  // Should be only called via a edit single gallery page
37
+ if ( isset($_POST['nggpage']) && $_POST['nggpage'] == 'manage-images' )
38
  $this->post_processor_images();
39
  // Should be called via a publish dialog
40
+ if ( isset($_POST['nggpage']) && $_POST['nggpage'] == 'publish-post' )
41
  $this->publish_post();
42
 
43
  //Look for other POST process
products/photocrati_nextgen/modules/ngglegacy/module.ngglegacy.php CHANGED
@@ -23,7 +23,7 @@ class M_NggLegacy extends C_Base_Module
23
  'photocrati-nextgen-legacy',
24
  'NextGEN Legacy',
25
  'Embeds the original version of NextGEN 1.9.3 by Alex Rabe',
26
- '3.1.0',
27
  'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',
28
  'Imagely',
29
  'https://www.imagely.com'
23
  'photocrati-nextgen-legacy',
24
  'NextGEN Legacy',
25
  'Embeds the original version of NextGEN 1.9.3 by Alex Rabe',
26
+ '3.1.2',
27
  'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',
28
  'Imagely',
29
  'https://www.imagely.com'
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: photocrati, imagely
3
  Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
4
  Requires at least: 4.0.0
5
- Stable tag: 3.1.1
6
- Tested up to: 5.0.0
7
  License: GPLv2
8
 
9
  The most popular WordPress gallery plugin and one of the most popular plugins of all time with over 23 million downloads.
@@ -183,6 +183,9 @@ For more information, feel free to visit the official website for the NextGEN Ga
183
 
184
  == Changelog ==
185
 
 
 
 
186
  = V3.1.1 - 11.29.2018 =
187
  * Fixed: Don't enqueue block editor assets on frontend.
188
  * Fixed: Broken styling for column blocks
2
  Contributors: photocrati, imagely
3
  Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
4
  Requires at least: 4.0.0
5
+ Stable tag: 3.1.2
6
+ Tested up to: 5.0.1
7
  License: GPLv2
8
 
9
  The most popular WordPress gallery plugin and one of the most popular plugins of all time with over 23 million downloads.
183
 
184
  == Changelog ==
185
 
186
+ = V3.1.2 - 12.18.2018 =
187
+ * Fixed: Variable mismatch error when using central gallery management pages
188
+
189
  = V3.1.1 - 11.29.2018 =
190
  * Fixed: Don't enqueue block editor assets on frontend.
191
  * Fixed: Broken styling for column blocks