Skip to content

Commit bd086f2

Browse files
committed
v 0.117.3
Login : add a special fix to get admin path.
1 parent 2be4d58 commit bd086f2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tools/login.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@
4343
require_once $bootstrap;
4444

4545
/* Require some functions if W3TC is installed */
46-
$admin_path = str_replace(strtok(get_bloginfo('url'), '?') . '/', ABSPATH, get_admin_url());
46+
47+
$bloginfo_url_parts = parse_url(get_bloginfo('url'));
48+
$bloginfo_url = $bloginfo_url_parts['scheme'] . "://" . $bloginfo_url_parts['host'];
49+
50+
/* Require some functions if W3TC is installed */
51+
$admin_path = str_replace(strtok($bloginfo_url, '?') . '/', ABSPATH, get_admin_url());
4752
require_once $admin_path . '/includes/screen.php';
4853

4954
/* Start WP */

wputools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
WPUTools(){
44

5-
local _WPUTOOLS_VERSION='0.117.2';
5+
local _WPUTOOLS_VERSION='0.117.3';
66
local _PHP_VERSIONS=(7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5 9.0)
77
local _PHP_VERSIONS_OBSOLETES=(7.0 7.1 7.2 7.3 7.4 8.0)
88
local _PHP_VERSIONS_ADVANCED=(8.3 8.4 8.5 9.0)

0 commit comments

Comments
 (0)