From 0dbcca137a8e36b3fd4636b3183f44b164abfb1d Mon Sep 17 00:00:00 2001 From: Joerg Knoche Date: Mon, 22 Jun 2020 09:34:23 +0200 Subject: [PATCH] remove Wordpress check comment code which checks, whether Wordpress URL is below the Daiquiri URL since this is not necessarily the case for docker setups --- daiquiri.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daiquiri.php b/daiquiri.php index c3d81c6..79757ac 100644 --- a/daiquiri.php +++ b/daiquiri.php @@ -42,10 +42,10 @@ function daiquiri_auto_login() { if (isset($_COOKIE['sessionid']) && !is_user_logged_in()) { // check if WordPress is below Daiquiri - if (strpos(get_option('siteurl'), DAIQUIRI_URL) === false) { - echo '

Error with daiquiri plugin

Wordpress URL is not below Daiquiri URL. Please set the correct DAIQUIRI_URL in wp-config.php.

'; - die(0); - } +// if (strpos(get_option('siteurl'), DAIQUIRI_URL) === false) { + // echo '

Error with daiquiri plugin

Wordpress URL is not below Daiquiri URL. Please set the correct DAIQUIRI_URL in wp-config.php.

'; +// die(0); +// } // check which user is logged in into daiquiri right now $url = rtrim(DAIQUIRI_URL, '/') . '/accounts/profile.json/';