Skip to content

Commit bf305b5

Browse files
committed
Fixed php warning
1 parent 39cb6af commit bf305b5

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

Modula.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://wp-modula.com/
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.11.6
7+
* Version: 2.11.7
88
* Author URI: https://www.wpchill.com/
99
* License: GPLv3 or later
1010
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -47,7 +47,7 @@
4747
* @since 2.0.2
4848
*/
4949

50-
define( 'MODULA_LITE_VERSION', '2.11.6' );
50+
define( 'MODULA_LITE_VERSION', '2.11.7' );
5151
define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
5252
define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
5353
defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL', 'https://wp-modula.com' );

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
== Changelog ==
2+
= 2.11.7 - 14.12.2024 =
3+
Fixed: PHP Throwing warning in certain cases
4+
25
= 2.11.6 - 06.12.2024 =
36
Changed: Adjustments to the promotion notices for Modula
47

includes/public/templates/modula-gallery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@
8585
// Custom grid has a different setting name for the image crop.
8686
if ( 'custom-grid' !== $data->settings['type'] ) {
8787
// Specify if the image is cropped.
88-
if ( '1' === $data->settings['grid_image_crop'] ) {
88+
if ( isset( $data->settings['grid_image_crop'] ) && '1' === $data->settings['grid_image_crop'] ) {
8989
$item_data['crop'] = true;
9090
}
9191
} else {
9292
// Specify if the image is cropped.
93-
if ( '1' === $data->settings['img_crop'] ) {
93+
if ( isset( $data->settings['img_crop'] ) && '1' === $data->settings['img_crop'] ) {
9494
$item_data['crop'] = true;
9595
}
9696
}

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: best gallery plugin, image gallery, video gallery, free gallery, wordpress
44
Requires at least: 5.3
55
Tested up to: 6.7
66
Requires PHP: 5.6
7-
Stable tag: 2.11.6
7+
Stable tag: 2.11.7
88

99
License: GNU General Public License v3.0 or later
1010
The WordPress gallery plugin that's highly customizable & you can use to impress your clients. Create beautiful image galleries in minutes.
@@ -159,6 +159,9 @@ Free support is included only with a PRO license: [Buy Modula PRO](https://wp-mo
159159

160160
== Changelog ==
161161

162+
= 2.11.7 - 14.12.2024 =
163+
Fixed: PHP Throwing warning in certain cases
164+
162165
= 2.11.6 - 06.12.2024 =
163166
Changed: Adjustments to the promotion notices for Modula
164167

0 commit comments

Comments
 (0)