Upload folder disappear while deleting sub doamin
-
I am using one folder for all blog uploads by following code :
add_filter('upload_dir', 'fix_my_upload_dir'); function fix_my_upload_dir($uploads) { $uploads['basedir'] = '/home/example/www/wp-content/uploads/'; $uploads['baseurl'] = 'https://www.example.com/wp-content/uploads/'; $uploads['path'] = $uploads['basedir'] . $uploads['subdir']; $uploads['url'] = $uploads['baseurl'] . $uploads['subdir']; return $uploads; }
When I delete sub domain from my network through network admin images disappear from all sub domains as well as main blog. And when I look to uploads folder there is no folder left.
Please let me know where i am wrong ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Upload folder disappear while deleting sub doamin’ is closed to new replies.