From 27b7a01c8a7d2301867b9d82214a25d55ec695bb Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 7 Dec 2022 14:39:42 -0800 Subject: [PATCH] CRM_Utils_System_WordPress - Drop unused variable This is an off-shoot from #24911. Before ------ `WordPress` implements the method `mapConfigToSSL()`, but ti doesn't do anything. To see this, you can search for 'base_url' across the entire-source of a Civi-WP installation. Specifically, I used ``` grep -lri 'global.*base_url' ``` The references appeared unrelated -- some references to Drupal/Backdrop adapters, and some references to minified JS files. But I couldn't see anything that would in PHP on WP. After ----- Don't bother implementing the method. Might as well inherit the base method (which is empty). --- CRM/Utils/System/WordPress.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index 91e59b398f..706049eedb 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -288,14 +288,6 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { } } - /** - * @inheritDoc - */ - public function mapConfigToSSL() { - global $base_url; - $base_url = str_replace('http://', 'https://', $base_url); - } - /** * @inheritDoc */ -- 2.25.1