We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca4ef29 + 0c36e19 commit 9e279baCopy full SHA for 9e279ba
1 file changed
php/sync/class-storage.php
@@ -389,6 +389,10 @@ public function size_signature( $attachment_id ) {
389
* @param string $public_id Optional public ID.
390
*/
391
public function size_sync( $attachment_id, $public_id = null ) {
392
+ if ( empty( $this->media ) ) {
393
+ $this->setup();
394
+ }
395
+
396
if ( is_null( $public_id ) ) {
397
$public_id = $this->media->get_public_id( $attachment_id );
398
}
0 commit comments