thumbnails deletion issue
-
If WordPress option to add year and month to uploads directory is active, thumbnails can’t be deleted because of bad resulting path in delete_files() in file phoenix-media-rename\classes\class-media-rename.php. Both $uploads_path and $size_data[‘path’] have year and mont. Tried to change ‘path’ to ‘basedir’ and it works fine for me now.
static function delete_files($attachment_id, $option_debug_mode){ $uploads_path = wp_upload_dir(); $uploads_path = $uploads_path['basedir']; // path -> basedir
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘thumbnails deletion issue’ is closed to new replies.