Skip to content

Commit

Permalink
Merge pull request #5 from CecileBr/master
Browse files Browse the repository at this point in the history
Fix inversion between height and width
  • Loading branch information
Darklg authored Jan 24, 2024
2 parents 147b505 + 224d5ff commit ded916a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpuseo.php
Original file line number Diff line number Diff line change
Expand Up @@ -1733,8 +1733,8 @@ public function set_metas_ld_json($metas, $metas_json) {
if (is_numeric($image_id)) {
$image_obj = wp_get_attachment_image_src($image_id, $this->thumbnail_size);
if (is_array($image_obj) && $image_obj[0] == $metas['image']['content']) {
$metas_json['image']['height'] = $image_obj[1];
$metas_json['image']['width'] = $image_obj[2];
$metas_json['image']['width'] = $image_obj[1];
$metas_json['image']['height'] = $image_obj[2];
}
}
}
Expand Down

0 comments on commit ded916a

Please sign in to comment.