We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sized_url
1 parent 952f08d commit ac0d903Copy full SHA for ac0d903
php/class-delivery.php
@@ -870,8 +870,9 @@ public function find_attachment_size_urls() {
870
if ( true === $auto_sync ) {
871
$this->sync->add_to_sync( $result->post_id );
872
}
873
- $size = $this->get_sized( $result->post_id );
874
- $cached[ $size['sized_url'] ] = (int) $result->post_id;
+ $size = $this->get_sized( $result->post_id );
+ $key = ! empty( $size['sized_url'] ) ? $size['sized_url'] : wp_get_attachment_url( $result->post_id );
875
+ $cached[ $key ] = (int) $result->post_id;
876
877
878
wp_cache_add( $key, $cached );
0 commit comments