Skip to content

Commit

Permalink
change: pass REST url to iframe
Browse files Browse the repository at this point in the history
issue #1549
  • Loading branch information
eteubert committed Dec 22, 2024
1 parent 8199527 commit 540352f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/modules/onboarding/settings/onboarding_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ public function page()
$authentication = Authentication::application_password();

$site = urlencode(rtrim(get_site_url(), '/'));
$rest_url = urlencode(rtrim(get_rest_url(), '/'));
$user = $authentication['name'];
$password = $authentication['password'];
$userLang = explode('_', get_locale())[0];

$iframeSrc = "{$onboardingInclude}?site_url={$site}&user_login={$user}&password={$password}&lang={$userLang}";
$iframeSrc = "{$onboardingInclude}?site_url={$site}&rest_url={$rest_url}&user_login={$user}&password={$password}&lang={$userLang}";
$acknowledgeHeadline = __('Onboarding Assistant 👋', 'podlove-podcasting-plugin-for-wordpress');
$acknowledgeDescription = __('To be able to offer you this service, we have to run the onboarding assistant on our external server. We have done everything in our power to make the service as privacy friendly as possible. We do not store any of your entered data, everything is saved in your browser 🤞. However, it is important to us that you are aware of this fact before you use the onboarding service.', 'podlove-podcasting-plugin-for-wordpress');
$acknowledgeButton = __('All right, I\'ve got it', 'podlove-podcasting-plugin-for-wordpress');
Expand Down

0 comments on commit 540352f

Please sign in to comment.