Skip to content

Commit 86d2a0a

Browse files
committed
Handle single slash folder
1 parent b32a307 commit 86d2a0a

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
@@ -933,7 +933,7 @@ public function upload_dir( $dirs ) {
933933
*/
934934
public function get_cloudinary_folder() {
935935
$folder = '';
936-
if ( ! empty( $this->cloudinary_folder ) ) {
936+
if ( ! empty( $this->cloudinary_folder ) && '/' !== $this->cloudinary_folder ) {
937937
$folder = trailingslashit( trim( $this->cloudinary_folder, '/' ) );
938938
}
939939

0 commit comments

Comments
 (0)