Plugin Directory

Changeset 3343544


Ignore:
Timestamp:
08/12/2025 12:27:07 PM (6 months ago)
Author:
wpchill
Message:

Update to version 2.12.19 from GitHub

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

Legend:

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

    r3335369 r3343544  
    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.12.18
     7* Version:                  2.12.19
    88* Author URI:               https://www.wpchill.com/
    99* License:                  GPLv3 or later
     
    4848 */
    4949
    50 define( 'MODULA_LITE_VERSION', '2.12.18' );
     50define( 'MODULA_LITE_VERSION', '2.12.19' );
    5151define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
    5252define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
  • modula-best-grid-gallery/tags/2.12.19/changelog.txt

    r3335369 r3343544  
     1= 2.12.19 - 12.08.2025 =
     2Fixed: Broken lightbox images when original image type was .heic
     3
    14= 2.12.18 - 28.07.2025 =
    25Added: Filter `modula_show_alignment_options` to allow enabling image alignment options.
  • modula-best-grid-gallery/tags/2.12.19/includes/public/modula-helper-functions.php

    r3258545 r3343544  
    5656    if ( 'full' === $grid_sizes ) {
    5757        $original_image = wp_get_original_image_url( $item['id'] );
     58        $mime_type = get_post_mime_type( $item['id'] );
     59        if ( 'image/heic' === $mime_type || 'image/heif' === $mime_type ) {
     60            $original_image = wp_get_attachment_image_src( $item['id'], 'full' );
     61            if ( ! $original_image || ! isset( $original_image[0] ) ) {
     62                $original_image = false;
     63            }
     64            $original_image = $original_image[0];
     65        } else {
     66            $original_image = wp_get_original_image_url( $item['id'] );
     67        }
    5868    }
    5969
  • modula-best-grid-gallery/tags/2.12.19/includes/public/templates/modula-gallery.php

    r3323470 r3343544  
    1414                continue;
    1515            }
    16             $full_img_src = esc_url( wp_get_original_image_url( $image['id'] ) );
     16            $mime_type = get_post_mime_type( $image['id'] );
     17            if ( 'image/heic' === $mime_type || 'image/heif' === $mime_type ) {
     18                $full_img_src = wp_get_attachment_image_src( $image['id'], 'full' );
     19                if ( ! $full_img_src || ! isset( $full_img_src[0] ) ) {
     20                    continue;
     21                }
     22                $full_img_src = $full_img_src[0];
     23            } else {
     24                $full_img_src = wp_get_original_image_url( $image['id'] );
     25            }
    1726
    1827            // Check per gallery & per image if we should show title.
  • modula-best-grid-gallery/tags/2.12.19/readme.txt

    r3335369 r3343544  
    55Tested up to: 6.8
    66Requires PHP: 5.6 
    7 Stable tag: 2.12.18
     7Stable tag: 2.12.19
    88
    99License: GNU General Public License v3.0 or later 
     
    129129== Changelog ==
    130130
     131= 2.12.19 - 12.08.2025 =
     132Fixed: Broken lightbox images when original image type was .heic.
     133
    131134= 2.12.18 - 28.07.2025 =
    132135Added: Filter `modula_show_alignment_options` to allow enabling image alignment options.
  • modula-best-grid-gallery/trunk/Modula.php

    r3335369 r3343544  
    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.12.18
     7* Version:                  2.12.19
    88* Author URI:               https://www.wpchill.com/
    99* License:                  GPLv3 or later
     
    4848 */
    4949
    50 define( 'MODULA_LITE_VERSION', '2.12.18' );
     50define( 'MODULA_LITE_VERSION', '2.12.19' );
    5151define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
    5252define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
  • modula-best-grid-gallery/trunk/changelog.txt

    r3335369 r3343544  
     1= 2.12.19 - 12.08.2025 =
     2Fixed: Broken lightbox images when original image type was .heic
     3
    14= 2.12.18 - 28.07.2025 =
    25Added: Filter `modula_show_alignment_options` to allow enabling image alignment options.
  • modula-best-grid-gallery/trunk/includes/public/modula-helper-functions.php

    r3258545 r3343544  
    5656    if ( 'full' === $grid_sizes ) {
    5757        $original_image = wp_get_original_image_url( $item['id'] );
     58        $mime_type = get_post_mime_type( $item['id'] );
     59        if ( 'image/heic' === $mime_type || 'image/heif' === $mime_type ) {
     60            $original_image = wp_get_attachment_image_src( $item['id'], 'full' );
     61            if ( ! $original_image || ! isset( $original_image[0] ) ) {
     62                $original_image = false;
     63            }
     64            $original_image = $original_image[0];
     65        } else {
     66            $original_image = wp_get_original_image_url( $item['id'] );
     67        }
    5868    }
    5969
  • modula-best-grid-gallery/trunk/includes/public/templates/modula-gallery.php

    r3323470 r3343544  
    1414                continue;
    1515            }
    16             $full_img_src = esc_url( wp_get_original_image_url( $image['id'] ) );
     16            $mime_type = get_post_mime_type( $image['id'] );
     17            if ( 'image/heic' === $mime_type || 'image/heif' === $mime_type ) {
     18                $full_img_src = wp_get_attachment_image_src( $image['id'], 'full' );
     19                if ( ! $full_img_src || ! isset( $full_img_src[0] ) ) {
     20                    continue;
     21                }
     22                $full_img_src = $full_img_src[0];
     23            } else {
     24                $full_img_src = wp_get_original_image_url( $image['id'] );
     25            }
    1726
    1827            // Check per gallery & per image if we should show title.
  • modula-best-grid-gallery/trunk/readme.txt

    r3335369 r3343544  
    55Tested up to: 6.8
    66Requires PHP: 5.6 
    7 Stable tag: 2.12.18
     7Stable tag: 2.12.19
    88
    99License: GNU General Public License v3.0 or later 
     
    129129== Changelog ==
    130130
     131= 2.12.19 - 12.08.2025 =
     132Fixed: Broken lightbox images when original image type was .heic.
     133
    131134= 2.12.18 - 28.07.2025 =
    132135Added: Filter `modula_show_alignment_options` to allow enabling image alignment options.
Note: See TracChangeset for help on using the changeset viewer.