NextGEN Gallery – WordPress Gallery Plugin - Version 3.22

Version Description

  • 01.20.2022
  • Fixed: When viewing certain images NextGEN was using nggdb::get_unique_slug() on each viewing.
Download this release

Release Info

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

Code changes from version 3.21 to 3.22

changelog.txt CHANGED
@@ -1,6 +1,9 @@
1
  NextGEN Gallery
2
  by Imagely
3
 
 
 
 
4
  = V3.21 - 01.19.2022
5
  * NEW: Introducing constant NGG_DISABLE_PHOTOCRATI_CACHE_TRACKER which tracks all NGG transients when using an external object cache.
6
  * NEW: Adding an option to separate generated images with dashes instead of underscores for better SEO.
1
  NextGEN Gallery
2
  by Imagely
3
 
4
+ = V3.22 - 01.20.2022
5
+ * Fixed: When viewing certain images NextGEN was using nggdb::get_unique_slug() on each viewing.
6
+
7
  = V3.21 - 01.19.2022
8
  * NEW: Introducing constant NGG_DISABLE_PHOTOCRATI_CACHE_TRACKER which tracks all NGG transients when using an external object cache.
9
  * NEW: Adding an option to separate generated images with dashes instead of underscores for better SEO.
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 30 million downloads.
7
- * Version: 3.21
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
@@ -683,7 +683,7 @@ class C_NextGEN_Bootstrap
683
  define('NGG_PRODUCT_URL', path_join(str_replace("\\" , '/', NGG_PLUGIN_URL), 'products'));
684
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
685
  define('NGG_PLUGIN_STARTED_AT', microtime());
686
- define('NGG_PLUGIN_VERSION', '3.21');
687
 
688
  define(
689
  'NGG_SCRIPT_VERSION',
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 30 million downloads.
7
+ * Version: 3.22
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
683
  define('NGG_PRODUCT_URL', path_join(str_replace("\\" , '/', NGG_PLUGIN_URL), 'products'));
684
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
685
  define('NGG_PLUGIN_STARTED_AT', microtime());
686
+ define('NGG_PLUGIN_VERSION', '3.22');
687
 
688
  define(
689
  'NGG_SCRIPT_VERSION',
products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php CHANGED
@@ -3502,7 +3502,7 @@ class Mixin_Gallery_Image_Mapper extends Mixin
3502
  $this->object->_set_default_value($entity, 'alttext', $alttext);
3503
  }
3504
  // Set unique slug
3505
- if (isset($entity->alttext) && empty($entity->image_slug)) {
3506
  $entity->image_slug = nggdb::get_unique_slug(sanitize_title_with_dashes($entity->alttext), 'image');
3507
  }
3508
  // Ensure that the exclude parameter is an integer or boolean-evaluated
3502
  $this->object->_set_default_value($entity, 'alttext', $alttext);
3503
  }
3504
  // Set unique slug
3505
+ if (!empty($entity->alttext) && empty($entity->image_slug)) {
3506
  $entity->image_slug = nggdb::get_unique_slug(sanitize_title_with_dashes($entity->alttext), 'image');
3507
  }
3508
  // Ensure that the exclude parameter is an integer or boolean-evaluated
products/photocrati_nextgen/modules/nextgen_gallery_display/package.module.nextgen_gallery_display.php CHANGED
@@ -1230,6 +1230,7 @@ class C_Displayed_Gallery extends C_DataMapper_Model
1230
  function get_entity_count($returns = 'included')
1231
  {
1232
  $retval = 0;
 
1233
  // Is this an image query?
1234
  $source_obj = $this->object->get_source();
1235
  if (in_array('image', $source_obj->returns)) {
1230
  function get_entity_count($returns = 'included')
1231
  {
1232
  $retval = 0;
1233
+ // TODO: don't use count() here on the PHP end
1234
  // Is this an image query?
1235
  $source_obj = $this->object->get_source();
1236
  if (in_array('image', $source_obj->returns)) {
readme.txt CHANGED
@@ -2,7 +2,7 @@
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: 5.5.4
5
- Stable tag: 3.21
6
  Tested up to: 5.9
7
  License: GPLv3
8
  Requires PHP: 5.6
@@ -179,6 +179,9 @@ For more information, feel free to visit the official website for the NextGEN Ga
179
 
180
  == Changelog ==
181
 
 
 
 
182
  = V3.21 - 01.19.2022
183
  * NEW: Introducing constant NGG_DISABLE_PHOTOCRATI_CACHE_TRACKER which tracks all NGG transients when using an external object cache.
184
  * NEW: Adding an option to separate generated images with dashes instead of underscores for better SEO.
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: 5.5.4
5
+ Stable tag: 3.22
6
  Tested up to: 5.9
7
  License: GPLv3
8
  Requires PHP: 5.6
179
 
180
  == Changelog ==
181
 
182
+ = V3.22 - 01.20.2022
183
+ * Fixed: When viewing certain images NextGEN was using nggdb::get_unique_slug() on each viewing.
184
+
185
  = V3.21 - 01.19.2022
186
  * NEW: Introducing constant NGG_DISABLE_PHOTOCRATI_CACHE_TRACKER which tracks all NGG transients when using an external object cache.
187
  * NEW: Adding an option to separate generated images with dashes instead of underscores for better SEO.