Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome-barbato committed Oct 17, 2024
1 parent 7497686 commit 977ec72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name":"metabolism/wordpress-bundle",
"type": "symfony-bundle",
"version": "2.3.5",
"version": "2.3.6",
"description": "Build enterprise solutions with WordPress",
"license": "MIT",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ protected function get($id)
$this->title = $post->post_title;
$this->alt = trim(strip_tags($post_meta['_wp_attachment_image_alt'][0]??''));

$this->width = $attachment_metadata['width'];
$this->height = $attachment_metadata['height'];
$this->width = intval($attachment_metadata['width']);
$this->height = intval($attachment_metadata['height']);
$this->ratio = $this->width/$this->height;
$this->metadata = $attachment_metadata['image_meta'];
$this->mime_type = $post->post_mime_type;
Expand Down

0 comments on commit 977ec72

Please sign in to comment.