Skip to content

Commit b32a307

Browse files
committed
Fix leading slash in cloudinary folder bug
1 parent 4149217 commit b32a307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/class-media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ public function upload_dir( $dirs ) {
934934
public function get_cloudinary_folder() {
935935
$folder = '';
936936
if ( ! empty( $this->cloudinary_folder ) ) {
937-
$folder = trailingslashit( $this->cloudinary_folder );
937+
$folder = trailingslashit( trim( $this->cloudinary_folder, '/' ) );
938938
}
939939

940940
return $folder;

0 commit comments

Comments
 (0)