Plugin Directory

Changeset 2910849


Ignore:
Timestamp:
05/10/2023 06:01:24 PM (3 years ago)
Author:
photocrati
Message:

Released 3.36

Location:
nextgen-gallery/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • nextgen-gallery/trunk/changelog.txt

    r2859811 r2910849  
    11NextGEN Gallery
    22by 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.
    310
    411= V3.35  - 02.03.2023 =
  • nextgen-gallery/trunk/composer.lock

    r2850685 r2910849  
    116116        {
    117117            "name": "nikic/php-parser",
    118             "version": "v4.15.3",
     118            "version": "v4.15.4",
    119119            "source": {
    120120                "type": "git",
    121121                "url": "https://github.com/nikic/PHP-Parser.git",
    122                 "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039"
     122                "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290"
    123123            },
    124124            "dist": {
    125125                "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",
    128128                "shasum": "",
    129129                "mirrors": [
     
    172172            "support": {
    173173                "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"
    175175            },
    176             "time": "2023-01-16T22:05:37+00:00"
     176            "time": "2023-03-05T19:49:14+00:00"
    177177        }
    178178    ],
  • nextgen-gallery/trunk/nggallery.php

    r2859811 r2910849  
    55 * Plugin Name: NextGEN Gallery
    66 * 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.35
     7 * Version: 3.36
    88 * Author: Imagely
    99 * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
     
    684684        define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
    685685        define('NGG_PLUGIN_STARTED_AT', microtime());
    686         define('NGG_PLUGIN_VERSION', '3.35');
     686        define('NGG_PLUGIN_VERSION', '3.36');
    687687
    688688        define(
  • nextgen-gallery/trunk/products/photocrati_nextgen/modules/nextgen_basic_tagcloud/package.module.nextgen_basic_tagcloud.php

    r2759439 r2910849  
    255255        global $wp_query;
    256256        $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) {
    258258            $wp_query_orig = $wp_query;
    259259            $wp_query = $wp_query_local;
  • nextgen-gallery/trunk/products/photocrati_nextgen/modules/ngglegacy/admin/manage-images.php

    r2675897 r2910849  
    743743            $('.if-js-closed').removeClass('if-js-closed').addClass('closed');
    744744
    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);
    749752
    750753            $(this).data('ready', true);
  • nextgen-gallery/trunk/products/photocrati_nextgen/modules/ngglegacy/admin/manage.php

    r2642042 r2910849  
    929929
    930930            $page['post_type']    = 'page';
    931             $page['post_content'] = apply_filters('ngg_add_page_shortcode', '[nggallery id="' . $this->gid . '"]' );
     931            $page['post_content'] = apply_filters('ngg_add_page_shortcode', '[ngg src="galleries" display="thumbnails" ids="' . $this->gid . '"]' );
    932932            $page['post_parent']  = $parent_id;
    933933            $page['post_author']  = $user_ID;
  • nextgen-gallery/trunk/products/photocrati_nextgen/modules/third_party_compat/module.third_party_compat.php

    r2759439 r2910849  
    104104        add_filter('wpseo_sitemap_urlimages', array($this, 'add_wpseo_xml_sitemap_images'), 10, 2);
    105105        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);
    106107
    107108        // Nimble Builder needs special consideration because of our shortcode manager's use of placeholders
    108109        add_action('wp_enqueue_scripts', [$this, 'enqueue_nimble_builder_frontend_resources']);
    109110        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        });
    110116
    111117        if ($this->is_ngg_page())
     
    128134
    129135        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);
    130178    }
    131179
  • nextgen-gallery/trunk/readme.txt

    r2859811 r2910849  
    33Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
    44Requires at least: 5.5.4
    5 Stable tag: 3.35
    6 Tested up to: 6.1.1
     5Stable tag: 3.36
     6Tested up to: 6.2
    77License: GPLv3
    88Requires PHP: 5.6
     
    179179
    180180== 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.
    181188
    182189= V3.35  - 02.03.2023 =
  • nextgen-gallery/trunk/vendor/autoload.php

    r2859186 r2910849  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit004157cb5085dc071ae6f8aa09fb1dbe::getLoader();
     25return ComposerAutoloaderInit43fb05fe5a4c2309c48e2d7d895f8844::getLoader();
  • nextgen-gallery/trunk/vendor/composer/autoload_real.php

    r2859811 r2910849  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit004157cb5085dc071ae6f8aa09fb1dbe
     5class ComposerAutoloaderInit43fb05fe5a4c2309c48e2d7d895f8844
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit004157cb5085dc071ae6f8aa09fb1dbe', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit43fb05fe5a4c2309c48e2d7d895f8844', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit004157cb5085dc071ae6f8aa09fb1dbe', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit43fb05fe5a4c2309c48e2d7d895f8844', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit004157cb5085dc071ae6f8aa09fb1dbe::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit004157cb5085dc071ae6f8aa09fb1dbe::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire004157cb5085dc071ae6f8aa09fb1dbe($fileIdentifier, $file);
     38            composerRequire43fb05fe5a4c2309c48e2d7d895f8844($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequire004157cb5085dc071ae6f8aa09fb1dbe($fileIdentifier, $file)
     50function composerRequire43fb05fe5a4c2309c48e2d7d895f8844($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • nextgen-gallery/trunk/vendor/composer/autoload_static.php

    r2859186 r2910849  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit004157cb5085dc071ae6f8aa09fb1dbe
     7class ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844
    88{
    99    public static $files = array (
     
    2929    {
    3030        return \Closure::bind(function () use ($loader) {
    31             $loader->prefixesPsr0 = ComposerStaticInit004157cb5085dc071ae6f8aa09fb1dbe::$prefixesPsr0;
    32             $loader->classMap = ComposerStaticInit004157cb5085dc071ae6f8aa09fb1dbe::$classMap;
     31            $loader->prefixesPsr0 = ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844::$prefixesPsr0;
     32            $loader->classMap = ComposerStaticInit43fb05fe5a4c2309c48e2d7d895f8844::$classMap;
    3333
    3434        }, null, ClassLoader::class);
Note: See TracChangeset for help on using the changeset viewer.