Skip to content

Instantly share code, notes, and snippets.

@ataylorme
Last active September 12, 2018 23:36
Show Gist options
  • Save ataylorme/c78e6a46e6abf4015feb4d97db7216a4 to your computer and use it in GitHub Desktop.
Save ataylorme/c78e6a46e6abf4015feb4d97db7216a4 to your computer and use it in GitHub Desktop.
From 78502e76a598b65d67ae6ea6216f1319debc59e9 Mon Sep 17 00:00:00 2001
From: ataylorme <[email protected]>
Date: Wed, 12 Sep 2018 16:16:35 -0700
Subject: [PATCH 1/1] Use get_home_url instead of get_site_url in lh-hsts
plugin
---
web/wp-content/plugins/lh-hsts/lh-hsts.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/wp-content/plugins/lh-hsts/lh-hsts.php b/web/wp-content/plugins/lh-hsts/lh-hsts.php
index 434da5e..10ae32e 100644
--- a/web/wp-content/plugins/lh-hsts/lh-hsts.php
+++ b/web/wp-content/plugins/lh-hsts/lh-hsts.php
@@ -43,7 +43,7 @@ if (!class_exists('LH_HSTS_Plugin')) {
$this->uri = $_SERVER['REQUEST_URI'];
$this->domain = $_SERVER['HTTP_HOST'];
- $this->current_domain = get_site_url();
+ $this->current_domain = get_home_url();
add_action( 'send_headers', array($this, "add_header"));
}
--
2.15.2 (Apple Git-101.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment