Skip to content

Commit

Permalink
fix(onboarding) - #1533 Don't overwrite user settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkbln authored and eteubert committed Dec 29, 2024
1 parent d19f201 commit ec8e75c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/modules/onboarding/rest_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ public function update_items($request)
\Podlove\Modules\Base::activate('wordpress_file_upload');
}
$upload_modul = Wordpress_File_Upload::instance();
$upload_modul->update_module_option('upload_subdir', 'podlove-media');
$upload_modul_dir = $upload_modul->get_module_option('upload_subdir');
if (empty($upload_modul_dir)) {
$upload_modul->update_module_option('upload_subdir', 'podlove-media');
}
// set upload loaction to emty
$settings = get_option('podlove_podcast');
$settings["media_file_base_uri"] = "";
Expand Down

0 comments on commit ec8e75c

Please sign in to comment.