From d6429f7564243c002f4404f43ec50281f8f6fe84 Mon Sep 17 00:00:00 2001 From: Kenji <2605401+kenjinote@users.noreply.github.com> Date: Sun, 24 Jul 2022 11:21:47 +0900 Subject: [PATCH] Update wp-config.php If WP_CONTENT_URL is specified as a relative path, it will not work well with Twitter Card. --- wp-config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-config.php b/wp-config.php index 94a31aa801..f57b1825e5 100644 --- a/wp-config.php +++ b/wp-config.php @@ -126,7 +126,7 @@ //Relative URLs for swapping across app service deployment slots define('WP_HOME', 'http://'. filter_input(INPUT_SERVER, 'HTTP_HOST', FILTER_SANITIZE_STRING)); define('WP_SITEURL', 'http://'. filter_input(INPUT_SERVER, 'HTTP_HOST', FILTER_SANITIZE_STRING)); -define('WP_CONTENT_URL', '/wp-content'); +define('WP_CONTENT_URL', 'http://'. filter_input(INPUT_SERVER, 'HTTP_HOST', FILTER_SANITIZE_STRING) .'/wp-content'); define('DOMAIN_CURRENT_SITE', filter_input(INPUT_SERVER, 'HTTP_HOST', FILTER_SANITIZE_STRING));