Skip to content

Commit e7eb88d

Browse files
committed
should have been ltrim and not rtrim
1 parent 39d1398 commit e7eb88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/media_offload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2383,7 +2383,7 @@ public function replace_urls_in_editor_content( $content ) {
23832383
}
23842384

23852385
// Build the optimized URL.
2386-
$optimized_url = $this->get_optimized_image_url( self::KEYS['not_processed_flag'] . $attachment_id . '/' . rtrim( $this->get_offloaded_attachment_url( $attachment_id, $url ), '/' ), $width, $height, $resize );
2386+
$optimized_url = $this->get_optimized_image_url( self::KEYS['not_processed_flag'] . $attachment_id . '/' . ltrim( $this->get_offloaded_attachment_url( $attachment_id, $url ), '/' ), $width, $height, $resize );
23872387

23882388
// Drop any image size from the URL.
23892389
$optimized_url = str_replace( '-' . $width . 'x' . $height, '', $optimized_url );

0 commit comments

Comments
 (0)