Skip to content

Commit

Permalink
Merge pull request #1011 from WPChill/2.8.18
Browse files Browse the repository at this point in the history
quickfix
  • Loading branch information
TeoAlex committed Jul 30, 2024
2 parents 85b7352 + 5f4735d commit 15157da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
= 2.8.18 - 30.07.2024 =
Fixed: Images inserted from the WordPress Media Library were not scaling correctly in the custom grid-type gallery.

= 2.8.17 - 30.07.2024 =
Added: WordPress Media library option to add selected(grid) or checked(list) images to a Modula gallery.( [#1002]( https://github.com/WPChill/modula-lite/issues/1002) )
Changed: Removed WPChill tracking option.( [#1007]( https://github.com/WPChill/modula-lite/issues/1007) )
Expand Down
1 change: 0 additions & 1 deletion includes/admin/class-modula-admin-helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ public static function sanitize_image( $image ) {
break;
case 'width':
case 'height':
$new_image[ $attribute ] = absint( $image[ $attribute ] );
break;
case 'title':
case 'description':
Expand Down
8 changes: 0 additions & 8 deletions includes/admin/class-modula-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -848,14 +848,6 @@ private function get_modula_image_data( $img_data ){
if ( isset( $img_data['post_excerpt'] ) ) {
$new_image['description'] = $img_data['post_excerpt'];
}

if ( isset( $img_metadata['width'] ) ) {
$new_image['width'] = $img_metadata['width'];
}

if ( isset( $img_metadata['height'] ) ) {
$new_image['height'] = $img_metadata['height'];
}

if ( isset( $img_metadata['image_meta'] ) && isset( $img_metadata['image_meta']['orientation'] ) && '0' === $img_metadata['image_meta']['orientation'] ) {
$new_image['orientation'] = 'portrait';
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ Free support is included only with a PRO license: [Buy Modula PRO](https://wp-mo
4. Responsive galleries created with Modula

== Changelog ==
= 2.8.18 - 30.07.2024 =
Fixed: Images inserted from the WordPress Media Library were not scaling correctly in the custom grid-type gallery.

= 2.8.17 - 30.07.2024 =
Added: WordPress Media library option to add selected(grid) or checked(list) images to a Modula gallery.( [#1002]( https://github.com/WPChill/modula-lite/issues/1002) )
Changed: Removed WPChill tracking option.( [#1007]( https://github.com/WPChill/modula-lite/issues/1007) )
Expand Down

0 comments on commit 15157da

Please sign in to comment.