Skip to content

Commit e7a0958

Browse files
committed
convert ? to &
1 parent ebe66ed commit e7a0958

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

php/class-delivery.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -890,9 +890,11 @@ public function convert_tags( $content, $context = 'view' ) {
890890
if ( empty( $relation['public_id'] || $url === $relation['public_id'] ) ) {
891891
continue; // We don't need the public_id relation item.
892892
}
893-
$base = $type . ':' . $url;
894-
$public_id = ! is_admin() ? $relation['public_id'] . '.' . $relation['format'] : null;
895-
$aliases[ $base ] = $this->media->cloudinary_url( $relation['post_id'], array(), $relation['transformations'], $public_id );
893+
$base = $type . ':' . $url;
894+
$public_id = ! is_admin() ? $relation['public_id'] . '.' . $relation['format'] : null;
895+
$cloudinary_url = $this->media->cloudinary_url( $relation['post_id'], array(), $relation['transformations'], $public_id );
896+
$aliases[ $base . '?' ] = $cloudinary_url . '&';
897+
$aliases[ $base ] = $cloudinary_url;
896898
}
897899

898900
// Create the sized found relations second.
@@ -909,7 +911,9 @@ public function convert_tags( $content, $context = 'view' ) {
909911
$aliases[ $local_url ] = $cached[ $local_url ];
910912
continue;
911913
}
912-
$aliases[ $local_url ] = $this->media->cloudinary_url( $relation['post_id'], explode( 'x', $size ), $relation['transformations'], $public_id );
914+
$cloudinary_url = $this->media->cloudinary_url( $relation['post_id'], explode( 'x', $size ), $relation['transformations'], $public_id );
915+
$aliases[ $local_url . '?' ] = $cloudinary_url . '&';
916+
$aliases[ $local_url ] = $cloudinary_url;
913917
}
914918
}
915919

0 commit comments

Comments
 (0)