diff --git a/build.json b/build.json index 0351d65..378ecb1 100644 --- a/build.json +++ b/build.json @@ -1 +1 @@ -{"owner":"humanmade","repo":"smart-media","sha":"239578e1130130b7d6ce58b5cd8f54347edbe78a","ref":"refs/tags/0.5.4","tagName":"0.5.4","branch":"gh-actions","tags":["0.5.4"],"updated_at":"2024-04-22T12:40:27.659Z"} \ No newline at end of file +{"owner":"humanmade","repo":"smart-media","sha":"50b21865fcc8a7e7de2efc41f67a8485cb8e325f","ref":"refs/tags/0.5.5","tagName":"0.5.5","branch":"gh-actions","tags":["0.5.5"],"updated_at":"2024-11-13T11:16:14.410Z"} \ No newline at end of file diff --git a/inc/cropper/namespace.php b/inc/cropper/namespace.php index 73b01fe..784b1ac 100644 --- a/inc/cropper/namespace.php +++ b/inc/cropper/namespace.php @@ -765,6 +765,10 @@ function filter_attachment_meta_data( $data, $attachment_id ) { return $data; } + if ( empty( $data['file'] ) ) { + return $data; + } + if ( skip_attachment( $attachment_id ) ) { return $data; } diff --git a/package-lock.json b/package-lock.json index 23e2aa3..8f7b7eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8776,9 +8776,9 @@ "dev": true }, "ws": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", - "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.3.tgz", + "integrity": "sha512-jmTjYU0j60B+vHey6TfR3Z7RD61z/hmxBS3VMSGIrroOWXQEneK1zNuotOUrGyBHQj0yrpsLHPWtigEFd13ndA==", "dev": true, "requires": { "async-limiter": "~1.0.0"