Skip to content

Commit

Permalink
Merge pull request #15 from humanmade/fix-set-height
Browse files Browse the repository at this point in the history
Use set_height for height value
  • Loading branch information
roborourke authored Jun 11, 2021
2 parents 5dfd391 + 869fd5e commit 5c1252d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function create_image( stdClass $data ): Image {
}

if ( isset( $data->media_details->height ) ) {
$item->set_width( $data->media_details->height );
$item->set_height( $data->media_details->height );
}

return $item;
Expand Down

0 comments on commit 5c1252d

Please sign in to comment.