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.
2 parents e74d929 + 86d2a0a commit 0fc67c3Copy full SHA for 0fc67c3
php/class-media.php
@@ -933,8 +933,8 @@ public function upload_dir( $dirs ) {
933
*/
934
public function get_cloudinary_folder() {
935
$folder = '';
936
- if ( ! empty( $this->cloudinary_folder ) ) {
937
- $folder = trailingslashit( $this->cloudinary_folder );
+ if ( ! empty( $this->cloudinary_folder ) && '/' !== $this->cloudinary_folder ) {
+ $folder = trailingslashit( trim( $this->cloudinary_folder, '/' ) );
938
}
939
940
return $folder;
0 commit comments