Plugin Directory

Changeset 3473531


Ignore:
Timestamp:
03/03/2026 10:43:34 AM (4 weeks ago)
Author:
wpchill
Message:

Update to version 2.14.18 from GitHub

Location:
modula-best-grid-gallery
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • modula-best-grid-gallery/tags/2.14.18/Modula.php

    r3469262 r3473531  
    55* Description:              Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
    66* Author:                   WPChill
    7 * Version:                  2.14.17
     7* Version:                  2.14.18
    88* Author URI:               https://www.wpchill.com/
    99* License:                  GPLv3 or later
     
    4848 */
    4949
    50 define( 'MODULA_LITE_VERSION', '2.14.17' );
     50define( 'MODULA_LITE_VERSION', '2.14.18' );
    5151define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
    5252define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
  • modula-best-grid-gallery/tags/2.14.18/changelog.txt

    r3469262 r3473531  
     1= 2.14.18 - 03.03.2026 =
     2Fixed: Enqueue front styles early.
     3
    14= 2.14.17 - 25.02.2026 =
    25Fixed: Migrator detection cache.
  • modula-best-grid-gallery/tags/2.14.18/includes/core/assets/class-modula-script-manager.php

    r3454697 r3473531  
    6969            foreach ( $styles as $style ) {
    7070                if ( ! wp_style_is( $style, 'enqueued' ) && ! empty( $style ) ) {
    71                         wp_enqueue_style( $script );
     71                        wp_enqueue_style( $style );
    7272                }
    7373            }
     
    8080            foreach ( $this->styles as $style ) {
    8181                if ( ! wp_style_is( $style, 'enqueued' ) ) {
    82                         wp_enqueue_script( $style );
     82                        wp_enqueue_style( $style );
    8383                }
    8484            }
  • modula-best-grid-gallery/tags/2.14.18/includes/public/shortcode/class-modula-shortcode.php

    r3460787 r3473531  
    2424        add_shortcode( 'modula-make-money', array( $this, 'affiliate_shortcode_handler' ) );
    2525        add_action( 'wp_enqueue_scripts', array( $this, 'add_gallery_scripts' ) );
     26        add_action( 'wp_enqueue_scripts', array( $this, 'maybe_enqueue_front_styles_early' ), 20 );
    2627        add_action( 'wp_footer', array( $this, 'print_gallery_css_in_footer' ), 10 );
    2728
     
    7071    }
    7172
     73    /**
     74     * Enqueue Modula front styles in the head when the content has [modula] shortcode.
     75     * Ensures styles load even when the shortcode runs after wp_head (e.g. with some themes or page builders).
     76     */
     77    public function maybe_enqueue_front_styles_early() {
     78        if ( ! is_singular() ) {
     79            return;
     80        }
     81
     82        $post = get_queried_object();
     83        if ( ! $post instanceof \WP_Post || empty( $post->post_content ) ) {
     84            return;
     85        }
     86
     87        if ( ! has_shortcode( $post->post_content, 'modula' ) && ! has_shortcode( $post->post_content, 'Modula' ) ) {
     88            return;
     89        }
     90
     91        wp_enqueue_style( 'modula' );
     92        wp_enqueue_style( 'modula-fancybox' );
     93    }
    7294
    7395
  • modula-best-grid-gallery/tags/2.14.18/readme.txt

    r3469262 r3473531  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 2.14.17
     7Stable tag: 2.14.18
    88
    99License: GNU General Public License v3.0 or later 
     
    326326
    327327== Changelog ==
     328= 2.14.18 - 03.03.2026 =
     329Fixed: Enqueue front styles early.
     330
    328331= 2.14.17 - 25.02.2026 =
    329332Fixed: Migrator detection cache.
  • modula-best-grid-gallery/trunk/Modula.php

    r3469262 r3473531  
    55* Description:              Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
    66* Author:                   WPChill
    7 * Version:                  2.14.17
     7* Version:                  2.14.18
    88* Author URI:               https://www.wpchill.com/
    99* License:                  GPLv3 or later
     
    4848 */
    4949
    50 define( 'MODULA_LITE_VERSION', '2.14.17' );
     50define( 'MODULA_LITE_VERSION', '2.14.18' );
    5151define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
    5252define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
  • modula-best-grid-gallery/trunk/changelog.txt

    r3469262 r3473531  
     1= 2.14.18 - 03.03.2026 =
     2Fixed: Enqueue front styles early.
     3
    14= 2.14.17 - 25.02.2026 =
    25Fixed: Migrator detection cache.
  • modula-best-grid-gallery/trunk/includes/core/assets/class-modula-script-manager.php

    r3454697 r3473531  
    6969            foreach ( $styles as $style ) {
    7070                if ( ! wp_style_is( $style, 'enqueued' ) && ! empty( $style ) ) {
    71                         wp_enqueue_style( $script );
     71                        wp_enqueue_style( $style );
    7272                }
    7373            }
     
    8080            foreach ( $this->styles as $style ) {
    8181                if ( ! wp_style_is( $style, 'enqueued' ) ) {
    82                         wp_enqueue_script( $style );
     82                        wp_enqueue_style( $style );
    8383                }
    8484            }
  • modula-best-grid-gallery/trunk/includes/public/shortcode/class-modula-shortcode.php

    r3460787 r3473531  
    2424        add_shortcode( 'modula-make-money', array( $this, 'affiliate_shortcode_handler' ) );
    2525        add_action( 'wp_enqueue_scripts', array( $this, 'add_gallery_scripts' ) );
     26        add_action( 'wp_enqueue_scripts', array( $this, 'maybe_enqueue_front_styles_early' ), 20 );
    2627        add_action( 'wp_footer', array( $this, 'print_gallery_css_in_footer' ), 10 );
    2728
     
    7071    }
    7172
     73    /**
     74     * Enqueue Modula front styles in the head when the content has [modula] shortcode.
     75     * Ensures styles load even when the shortcode runs after wp_head (e.g. with some themes or page builders).
     76     */
     77    public function maybe_enqueue_front_styles_early() {
     78        if ( ! is_singular() ) {
     79            return;
     80        }
     81
     82        $post = get_queried_object();
     83        if ( ! $post instanceof \WP_Post || empty( $post->post_content ) ) {
     84            return;
     85        }
     86
     87        if ( ! has_shortcode( $post->post_content, 'modula' ) && ! has_shortcode( $post->post_content, 'Modula' ) ) {
     88            return;
     89        }
     90
     91        wp_enqueue_style( 'modula' );
     92        wp_enqueue_style( 'modula-fancybox' );
     93    }
    7294
    7395
  • modula-best-grid-gallery/trunk/readme.txt

    r3469262 r3473531  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 2.14.17
     7Stable tag: 2.14.18
    88
    99License: GNU General Public License v3.0 or later 
     
    326326
    327327== Changelog ==
     328= 2.14.18 - 03.03.2026 =
     329Fixed: Enqueue front styles early.
     330
    328331= 2.14.17 - 25.02.2026 =
    329332Fixed: Migrator detection cache.
Note: See TracChangeset for help on using the changeset viewer.