Skip to content

Commit

Permalink
Merge pull request #108 from brainstormforce/next-release
Browse files Browse the repository at this point in the history
Up-to-date Next release
  • Loading branch information
sushmak02 authored Mar 8, 2024
2 parents 30b075c + f1b95b9 commit 5c96e8f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in

## Changelog ##

### 1.5.7.1 ###
* Fixed: Info List - Undefined variable issue with PHP 8.

### 1.5.7 ###
* Improvement: Compatibility with WordPress 6.3.

Expand Down
4 changes: 2 additions & 2 deletions modules/info-list/includes/frontend.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@
$img_size = getimagesize( $item->photo_url );
endif;

if ( isset( $img_size[0] ) && isset( $img_size[1] ) && 0 !== $img_size[0] ) :
$actual_height = ( $settings->icon_image_size * $img_size[1] ) / $img_size[0];
if ( (null !== intval($img_size[0]) ) && ( null !== intval($img_size[1]) ) && (0 !== intval($img_size[0]) )) :
$actual_height = ( intval($settings->icon_image_size) * intval($img_size[1] )) / intval($img_size[0]);

if ( $actual_height > $settings->icon_image_size ) :
$need_to_add = $actual_height - $settings->icon_image_size;
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in

== Changelog ==

= 1.5.7.1 =
* Fixed: Info List - Undefined variable issue with PHP 8.

= 1.5.7 =
* Improvement: Compatibility with WordPress 6.3.

Expand Down

0 comments on commit 5c96e8f

Please sign in to comment.