Changeset 2910849
- Timestamp:
- 05/10/2023 06:01:24 PM (3 years ago)
- Location:
- nextgen-gallery/trunk
- Files:
-
- 11 edited
-
changelog.txt (modified) (1 diff)
-
composer.lock (modified) (2 diffs)
-
nggallery.php (modified) (2 diffs)
-
products/photocrati_nextgen/modules/nextgen_basic_tagcloud/package.module.nextgen_basic_tagcloud.php (modified) (1 diff)
-
products/photocrati_nextgen/modules/ngglegacy/admin/manage-images.php (modified) (1 diff)
-
products/photocrati_nextgen/modules/ngglegacy/admin/manage.php (modified) (1 diff)
-
products/photocrati_nextgen/modules/third_party_compat/module.third_party_compat.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nextgen-gallery/trunk/changelog.txt
r2859811 r2910849 1 1 NextGEN Gallery 2 2 by Imagely 3 4 = V3.36 - 05.10.2023 = 5 * NEW: Added support for WP-Sweep so that NextGEN's tags will not be automatically removed. 6 * NEW: Added NextGEN Gallery images to RankMath SEO's sitemaps. 7 * Fixed: A JS error could trigger on the Manage Gallery page in some circumstances. 8 * Fixed: In some specific situations NextGEN Gallery could cause an infinite loop on all pages. 9 * Fixed: Manage Gallery's "Add Page" button used the legacy [nggallery] shortcode. 3 10 4 11 = V3.35 - 02.03.2023 = -
nextgen-gallery/trunk/composer.lock
r2850685 r2910849 116 116 { 117 117 "name": "nikic/php-parser", 118 "version": "v4.15. 3",118 "version": "v4.15.4", 119 119 "source": { 120 120 "type": "git", 121 121 "url": "https://github.com/nikic/PHP-Parser.git", 122 "reference": " 570e980a201d8ed0236b0a62ddf2c9cbb2034039"122 "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290" 123 123 }, 124 124 "dist": { 125 125 "type": "zip", 126 "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/ 570e980a201d8ed0236b0a62ddf2c9cbb2034039",127 "reference": " 570e980a201d8ed0236b0a62ddf2c9cbb2034039",126 "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290", 127 "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290", 128 128 "shasum": "", 129 129 "mirrors": [ … … 172 172 "support": { 173 173 "issues": "https://github.com/nikic/PHP-Parser/issues", 174 "source": "https://github.com/nikic/PHP-Parser/tree/v4.15. 3"174 "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4" 175 175 }, 176 "time": "2023-0 1-16T22:05:37+00:00"176 "time": "2023-03-05T19:49:14+00:00" 177 177 } 178 178 ], -
nextgen-gallery/trunk/nggallery.php
r2859811 r2910849 5 5 * Plugin Name: NextGEN Gallery 6 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.3 57 * Version: 3.36 8 8 * Author: Imagely 9 9 * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/ … … 684 684 define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules')); 685 685 define('NGG_PLUGIN_STARTED_AT', microtime()); 686 define('NGG_PLUGIN_VERSION', '3.3 5');686 define('NGG_PLUGIN_VERSION', '3.36'); 687 687 688 688 define( -
nextgen-gallery/trunk/products/photocrati_nextgen/modules/nextgen_basic_tagcloud/package.module.nextgen_basic_tagcloud.php
r2759439 r2910849 255 255 global $wp_query; 256 256 $wp_query_orig = false; 257 if ($wp_query_local != null && $wp_query_local != $wp_query) {257 if ($wp_query_local !== null && $wp_query_local !== $wp_query) { 258 258 $wp_query_orig = $wp_query; 259 259 $wp_query = $wp_query_local; -
nextgen-gallery/trunk/products/photocrati_nextgen/modules/ngglegacy/admin/manage-images.php
r2675897 r2910849 743 743 $('.if-js-closed').removeClass('if-js-closed').addClass('closed'); 744 744 745 // Some third party plugins alter when postboxes are enqueued, so give this line a second to wait for it to be available 746 setTimeout(function() { 747 postboxes.add_postbox_toggles('ngg-manage-gallery'); 748 }, 1000); 745 // Some third party plugins alter when postboxes are enqueued, so wait for window.postboxes to exist 746 const checkTimer = setInterval(() => { 747 if (typeof window.postboxes !== 'undefined') { 748 clearInterval(checkTimer); 749 postboxes.add_postbox_toggles('ngg-manage-gallery'); 750 } 751 }, 1000); 749 752 750 753 $(this).data('ready', true); -
nextgen-gallery/trunk/products/photocrati_nextgen/modules/ngglegacy/admin/manage.php
r2642042 r2910849 929 929 930 930 $page['post_type'] = 'page'; 931 $page['post_content'] = apply_filters('ngg_add_page_shortcode', '[ngg allery id="' . $this->gid . '"]' );931 $page['post_content'] = apply_filters('ngg_add_page_shortcode', '[ngg src="galleries" display="thumbnails" ids="' . $this->gid . '"]' ); 932 932 $page['post_parent'] = $parent_id; 933 933 $page['post_author'] = $user_ID; -
nextgen-gallery/trunk/products/photocrati_nextgen/modules/third_party_compat/module.third_party_compat.php
r2759439 r2910849 104 104 add_filter('wpseo_sitemap_urlimages', array($this, 'add_wpseo_xml_sitemap_images'), 10, 2); 105 105 add_filter('ngg_pre_delete_unused_term_id', array($this, 'dont_auto_purge_wpml_terms')); 106 add_filter('rank_math/sitemap/urlimages', [$this, 'add_rankmath_seo_images'], 10, 2); 106 107 107 108 // Nimble Builder needs special consideration because of our shortcode manager's use of placeholders 108 109 add_action('wp_enqueue_scripts', [$this, 'enqueue_nimble_builder_frontend_resources']); 109 110 add_filter('ngg_shortcode_placeholder', [$this, 'nimble_builder_shortcodes'], 10, 4); 111 112 add_filter('wp_sweep_excluded_taxonomies', function($taxonomies) { 113 $taxonomies[] = 'ngg_tag'; 114 return $taxonomies; 115 }); 110 116 111 117 if ($this->is_ngg_page()) … … 128 134 129 135 add_action('the_post', [$this, 'fix_page_parameter']); 136 } 137 138 /** 139 * Adds NextGEN images to RankMath when generating page & post sitemaps 140 * 141 * @param array $images 142 * @param int $post_ID 143 * @return array 144 */ 145 public function add_rankmath_seo_images($images, $post_ID) 146 { 147 $post = get_post($post_ID); 148 preg_match_all( 149 '/' . get_shortcode_regex() . '/', 150 $post->post_content, 151 $matches, 152 PREG_SET_ORDER 153 ); 154 155 $renderer = C_Displayed_Gallery_Renderer::get_instance(); 156 $storage = C_Gallery_Storage::get_instance(); 157 $shortcodes = C_NextGen_Shortcode_Manager::get_instance()->get_shortcodes(); 158 $retval = []; 159 160 foreach ($matches as $match) { 161 // Only process our shortcodes 162 if (in_array($match[2], $shortcodes)) 163 continue; 164 $params = shortcode_parse_atts(trim($match[0], '[]')); 165 if (in_array($params[0], $shortcodes)) 166 unset($params[0]); 167 168 $displayed_gallery = $renderer->params_to_displayed_gallery($params); 169 foreach ($displayed_gallery->get_entities() as $entity) { 170 // Do not start following albums' into their descent into madness. 171 if (isset($entity->galdesc)) 172 continue; 173 $retval[] = ['src' => $storage->get_image_url($entity)]; 174 }; 175 } 176 177 return array_merge($images, $retval); 130 178 } 131 179 -
nextgen-gallery/trunk/readme.txt
r2859811 r2910849 3 3 Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark 4 4 Requires at least: 5.5.4 5 Stable tag: 3.3 56 Tested up to: 6. 1.15 Stable tag: 3.36 6 Tested up to: 6.2 7 7 License: GPLv3 8 8 Requires PHP: 5.6 … … 179 179 180 180 == Changelog == 181 182 = V3.36 - 05.10.2023 = 183 * NEW: Added support for WP-Sweep so that NextGEN's tags will not be automatically removed. 184 * NEW: Added NextGEN Gallery images to RankMath SEO's sitemaps. 185 * Fixed: A JS error could trigger on the Manage Gallery page in some circumstances. 186 * Fixed: In some specific situations NextGEN Gallery could cause an infinite loop on all pages. 187 * Fixed: Manage Gallery's "Add Page" button used the legacy [nggallery] shortcode. 181 188 182 189 = V3.35 - 02.03.2023 = -
nextgen-gallery/trunk/vendor/autoload.php
r2859186 r2910849 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 004157cb5085dc071ae6f8aa09fb1dbe::getLoader();25 return ComposerAutoloaderInit43fb05fe5a4c2309c48e2d7d895f8844::getLoader(); -
nextgen-gallery/trunk/vendor/composer/autoload_real.php
r2859811 r2910849 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 004157cb5085dc071ae6f8aa09fb1dbe5 class ComposerAutoloaderInit43fb05fe5a4c2309c48e2d7d895f8844 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 004157cb5085dc071ae6f8aa09fb1dbe', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit43fb05fe5a4c2309c48e2d7d895f8844', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 004157cb5085dc071ae6f8aa09fb1dbe', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit43fb05fe5a4c2309c48e2d7d895f8844', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 004157cb5085dc071ae6f8aa09fb1dbe::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $includeFiles = \Composer\Autoload\ComposerStaticInit 004157cb5085dc071ae6f8aa09fb1dbe::$files;36 $includeFiles = \Composer\Autoload\ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844::$files; 37 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequire 004157cb5085dc071ae6f8aa09fb1dbe($fileIdentifier, $file);38 composerRequire43fb05fe5a4c2309c48e2d7d895f8844($fileIdentifier, $file); 39 39 } 40 40 … … 48 48 * @return void 49 49 */ 50 function composerRequire 004157cb5085dc071ae6f8aa09fb1dbe($fileIdentifier, $file)50 function composerRequire43fb05fe5a4c2309c48e2d7d895f8844($fileIdentifier, $file) 51 51 { 52 52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
nextgen-gallery/trunk/vendor/composer/autoload_static.php
r2859186 r2910849 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 004157cb5085dc071ae6f8aa09fb1dbe7 class ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844 8 8 { 9 9 public static $files = array ( … … 29 29 { 30 30 return \Closure::bind(function () use ($loader) { 31 $loader->prefixesPsr0 = ComposerStaticInit 004157cb5085dc071ae6f8aa09fb1dbe::$prefixesPsr0;32 $loader->classMap = ComposerStaticInit 004157cb5085dc071ae6f8aa09fb1dbe::$classMap;31 $loader->prefixesPsr0 = ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844::$prefixesPsr0; 32 $loader->classMap = ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844::$classMap; 33 33 34 34 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.