NextGEN Gallery – WordPress Gallery Plugin - Version 2.1.56

Version Description

  • 10.27.2016 =
  • Fixed: Shortcode parsing was affecting third-party shortcodes
Download this release

Release Info

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

Code changes from version 2.1.54 to 2.1.56

changelog.txt CHANGED
@@ -1,6 +1,9 @@
1
  NextGEN Gallery
2
  by Imagely
3
 
 
 
 
4
  = V2.1.54 - 10.25.2016 =
5
  * NEW: Added php docblock directives for code hinting/completion
6
  * NEW: Display types can have aliases
1
  NextGEN Gallery
2
  by Imagely
3
 
4
+ = V2.1.56 - 10.27.2016 =
5
+ * Fixed: Shortcode parsing was affecting third-party shortcodes
6
+
7
  = V2.1.54 - 10.25.2016 =
8
  * NEW: Added php docblock directives for code hinting/completion
9
  * NEW: Display types can have aliases
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 15 million downloads.
7
- * Version: 2.1.54
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
@@ -596,7 +596,7 @@ class C_NextGEN_Bootstrap
596
  define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
597
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
598
  define('NGG_PLUGIN_STARTED_AT', microtime());
599
- define('NGG_PLUGIN_VERSION', '2.1.54');
600
 
601
  if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
602
  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 15 million downloads.
7
+ * Version: 2.1.56
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
596
  define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
597
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
598
  define('NGG_PLUGIN_STARTED_AT', microtime());
599
+ define('NGG_PLUGIN_VERSION', '2.1.56');
600
 
601
  if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
602
  define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
non_pope/class.nextgen_shortcode_manager.php CHANGED
@@ -90,10 +90,8 @@ class C_NextGen_Shortcode_Manager
90
  */
91
  function fix_nested_shortcodes($content)
92
  {
93
- global $shortcode_tags;
94
-
95
  // Try to find each registered shortcode in the content
96
- foreach ($shortcode_tags as $tag => $callback) {
97
  $shortcode_start_tag = "[{$tag}";
98
  $offset = 0;
99
 
@@ -152,7 +150,7 @@ class C_NextGen_Shortcode_Manager
152
  $offset = $index+1+strlen($shortcode_replacement)-strlen($shortcode);
153
  }
154
  }
155
- reset($shortcode_tags);
156
 
157
  return $content;
158
  }
90
  */
91
  function fix_nested_shortcodes($content)
92
  {
 
 
93
  // Try to find each registered shortcode in the content
94
+ foreach ($this->_shortcodes as $tag => $callback) {
95
  $shortcode_start_tag = "[{$tag}";
96
  $offset = 0;
97
 
150
  $offset = $index+1+strlen($shortcode_replacement)-strlen($shortcode);
151
  }
152
  }
153
+ reset($this->_shortcodes);
154
 
155
  return $content;
156
  }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: photocrati, imagely
3
  Tags: nextgen, nextgen gallery, gallery, galleries, image, images, image gallery, photo, photos, photo gallery, picture, pictures, picture gallery, album, albums, photo albums, image album, media, media gallery, thumbnails, thumbnail gallery, thumbnail galleries, slideshow, slideshows, slideshow gallery, slideshow galleries, fancybox, lightbox, responsive, responsive gallery, responsive galleries, wordpress responsive gallery, nextcellent, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugins, best gallery plugin, free photo gallery, singlepic, image captions imagebrowser, watermarks, watermarking, photography, photographer
4
  Requires at least: 4.0.0
5
- Stable tag: 2.1.54
6
  Tested up to: 4.6.1
7
  License: GPLv2
8
 
@@ -187,6 +187,9 @@ For more information, feel free to visit the official website for the NextGEN Ga
187
 
188
  == Changelog ==
189
 
 
 
 
190
  = V2.1.54 - 10.25.2016 =
191
  * NEW: Added php docblock directives for code hinting/completion
192
  * NEW: Display types can have aliases
2
  Contributors: photocrati, imagely
3
  Tags: nextgen, nextgen gallery, gallery, galleries, image, images, image gallery, photo, photos, photo gallery, picture, pictures, picture gallery, album, albums, photo albums, image album, media, media gallery, thumbnails, thumbnail gallery, thumbnail galleries, slideshow, slideshows, slideshow gallery, slideshow galleries, fancybox, lightbox, responsive, responsive gallery, responsive galleries, wordpress responsive gallery, nextcellent, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugins, best gallery plugin, free photo gallery, singlepic, image captions imagebrowser, watermarks, watermarking, photography, photographer
4
  Requires at least: 4.0.0
5
+ Stable tag: 2.1.56
6
  Tested up to: 4.6.1
7
  License: GPLv2
8
 
187
 
188
  == Changelog ==
189
 
190
+ = V2.1.56 - 10.27.2016 =
191
+ * Fixed: Shortcode parsing was affecting third-party shortcodes
192
+
193
  = V2.1.54 - 10.25.2016 =
194
  * NEW: Added php docblock directives for code hinting/completion
195
  * NEW: Display types can have aliases