Changeset 3473531
- Timestamp:
- 03/03/2026 10:43:34 AM (4 weeks ago)
- Location:
- modula-best-grid-gallery
- Files:
-
- 10 edited
- 1 copied
-
tags/2.14.18 (copied) (copied from modula-best-grid-gallery/trunk)
-
tags/2.14.18/Modula.php (modified) (2 diffs)
-
tags/2.14.18/changelog.txt (modified) (1 diff)
-
tags/2.14.18/includes/core/assets/class-modula-script-manager.php (modified) (2 diffs)
-
tags/2.14.18/includes/public/shortcode/class-modula-shortcode.php (modified) (2 diffs)
-
tags/2.14.18/readme.txt (modified) (2 diffs)
-
trunk/Modula.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/core/assets/class-modula-script-manager.php (modified) (2 diffs)
-
trunk/includes/public/shortcode/class-modula-shortcode.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modula-best-grid-gallery/tags/2.14.18/Modula.php
r3469262 r3473531 5 5 * Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks. 6 6 * Author: WPChill 7 * Version: 2.14.1 77 * Version: 2.14.18 8 8 * Author URI: https://www.wpchill.com/ 9 9 * License: GPLv3 or later … … 48 48 */ 49 49 50 define( 'MODULA_LITE_VERSION', '2.14.1 7' );50 define( 'MODULA_LITE_VERSION', '2.14.18' ); 51 51 define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) ); 52 52 define( '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 = 2 Fixed: Enqueue front styles early. 3 1 4 = 2.14.17 - 25.02.2026 = 2 5 Fixed: Migrator detection cache. -
modula-best-grid-gallery/tags/2.14.18/includes/core/assets/class-modula-script-manager.php
r3454697 r3473531 69 69 foreach ( $styles as $style ) { 70 70 if ( ! wp_style_is( $style, 'enqueued' ) && ! empty( $style ) ) { 71 wp_enqueue_style( $s cript);71 wp_enqueue_style( $style ); 72 72 } 73 73 } … … 80 80 foreach ( $this->styles as $style ) { 81 81 if ( ! wp_style_is( $style, 'enqueued' ) ) { 82 wp_enqueue_s cript( $style );82 wp_enqueue_style( $style ); 83 83 } 84 84 } -
modula-best-grid-gallery/tags/2.14.18/includes/public/shortcode/class-modula-shortcode.php
r3460787 r3473531 24 24 add_shortcode( 'modula-make-money', array( $this, 'affiliate_shortcode_handler' ) ); 25 25 add_action( 'wp_enqueue_scripts', array( $this, 'add_gallery_scripts' ) ); 26 add_action( 'wp_enqueue_scripts', array( $this, 'maybe_enqueue_front_styles_early' ), 20 ); 26 27 add_action( 'wp_footer', array( $this, 'print_gallery_css_in_footer' ), 10 ); 27 28 … … 70 71 } 71 72 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 } 72 94 73 95 -
modula-best-grid-gallery/tags/2.14.18/readme.txt
r3469262 r3473531 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.6 7 Stable tag: 2.14.1 77 Stable tag: 2.14.18 8 8 9 9 License: GNU General Public License v3.0 or later … … 326 326 327 327 == Changelog == 328 = 2.14.18 - 03.03.2026 = 329 Fixed: Enqueue front styles early. 330 328 331 = 2.14.17 - 25.02.2026 = 329 332 Fixed: Migrator detection cache. -
modula-best-grid-gallery/trunk/Modula.php
r3469262 r3473531 5 5 * Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks. 6 6 * Author: WPChill 7 * Version: 2.14.1 77 * Version: 2.14.18 8 8 * Author URI: https://www.wpchill.com/ 9 9 * License: GPLv3 or later … … 48 48 */ 49 49 50 define( 'MODULA_LITE_VERSION', '2.14.1 7' );50 define( 'MODULA_LITE_VERSION', '2.14.18' ); 51 51 define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) ); 52 52 define( 'MODULA_URL', plugin_dir_url( __FILE__ ) ); -
modula-best-grid-gallery/trunk/changelog.txt
r3469262 r3473531 1 = 2.14.18 - 03.03.2026 = 2 Fixed: Enqueue front styles early. 3 1 4 = 2.14.17 - 25.02.2026 = 2 5 Fixed: Migrator detection cache. -
modula-best-grid-gallery/trunk/includes/core/assets/class-modula-script-manager.php
r3454697 r3473531 69 69 foreach ( $styles as $style ) { 70 70 if ( ! wp_style_is( $style, 'enqueued' ) && ! empty( $style ) ) { 71 wp_enqueue_style( $s cript);71 wp_enqueue_style( $style ); 72 72 } 73 73 } … … 80 80 foreach ( $this->styles as $style ) { 81 81 if ( ! wp_style_is( $style, 'enqueued' ) ) { 82 wp_enqueue_s cript( $style );82 wp_enqueue_style( $style ); 83 83 } 84 84 } -
modula-best-grid-gallery/trunk/includes/public/shortcode/class-modula-shortcode.php
r3460787 r3473531 24 24 add_shortcode( 'modula-make-money', array( $this, 'affiliate_shortcode_handler' ) ); 25 25 add_action( 'wp_enqueue_scripts', array( $this, 'add_gallery_scripts' ) ); 26 add_action( 'wp_enqueue_scripts', array( $this, 'maybe_enqueue_front_styles_early' ), 20 ); 26 27 add_action( 'wp_footer', array( $this, 'print_gallery_css_in_footer' ), 10 ); 27 28 … … 70 71 } 71 72 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 } 72 94 73 95 -
modula-best-grid-gallery/trunk/readme.txt
r3469262 r3473531 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.6 7 Stable tag: 2.14.1 77 Stable tag: 2.14.18 8 8 9 9 License: GNU General Public License v3.0 or later … … 326 326 327 327 == Changelog == 328 = 2.14.18 - 03.03.2026 = 329 Fixed: Enqueue front styles early. 330 328 331 = 2.14.17 - 25.02.2026 = 329 332 Fixed: Migrator detection cache.
Note: See TracChangeset
for help on using the changeset viewer.