Skip to content

Commit

Permalink
Built release for 0.5.1. For a full change log look at the notes with…
Browse files Browse the repository at this point in the history
…in the original/0.5.1 release.
  • Loading branch information
github-actions[bot] committed Apr 3, 2024
1 parent cda745c commit c64b923
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"owner":"humanmade","repo":"smart-media","sha":"326e3f5490759e2042be2e220c84a5615e2233e4","ref":"refs/tags/0.5.0","tagName":"0.5.0","branch":"gh-actions","tags":["0.5.0"],"updated_at":"2024-04-02T14:20:07.205Z"}
{"owner":"humanmade","repo":"smart-media","sha":"517290b015c1c09e7fc84db8671aeeda3deea5e0","ref":"refs/tags/0.5.1","tagName":"0.5.1","branch":"gh-actions","tags":["0.5.1"],"updated_at":"2024-04-03T12:47:06.638Z"}
6 changes: 5 additions & 1 deletion inc/cropper/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,11 @@ function img_tag_add_attr( bool $value, string $image ) : bool {
* @param array $image_meta The attachment meta data.
* @return false|array Returns an array of [width, height] on success, false on failure.
*/
function get_img_src_dimensions( string $image_src, array $image_meta ) {
function get_img_src_dimensions( $image_src, $image_meta ) {
if ( empty( $image_meta ) ) {
return $image_src;
}

// Bail early if an image has been inserted and later edited.
list( $image_path ) = explode( '?', $image_src );
if ( preg_match( '/-e[0-9]{13}/', $image_meta['file'], $img_edit_hash ) &&
Expand Down

0 comments on commit c64b923

Please sign in to comment.