From 03830d1dd7e35f6693ace9180cc01dd4d0b4e1df Mon Sep 17 00:00:00 2001 From: lucha <lucha@paranoici.org> Date: Sun, 21 Feb 2021 19:12:14 -0800 Subject: [PATCH] Patch definition of WP_CONTENT_URL to include SSL when it might not This is almost useless. WP_CONTENT_URL is a deprecated constant only used in one theme, elegant-grunge. The definition is based on the output get_option('siteurl'), which I think should also be set to the https address. Nonetheles, just to be safe, let's keep this patch for the moment, but we should check if we can drop it. --- composer.patches.json | 1 + patches/core/0052-fix-ssl-wp-content-url.patch | 1 + 2 files changed, 2 insertions(+) diff --git a/composer.patches.json b/composer.patches.json index b4ec8926..719a9cdc 100644 --- a/composer.patches.json +++ b/composer.patches.json @@ -1,6 +1,7 @@ { "patches": { "johnpbloch/wordpress-core": { + "Patch definition of WP_CONTENT_URL to include SSL when it might not ": "patches/core/0052-fix-ssl-wp-content-url.patch", "Disable WP 1.2 upgrade": "patches/core/wp-upgrade-110.patch", "Do not leak how many users/blogs there are to api.wordpress.org" : "patches/core/0101-Do-not-leak-how-many-users-blogs-there-are-to-api.wo.patch", "Anonymize user-agent and don't send some headers when checking for updates": "patches/core/0102-anonymize-user-agent-and-don-t-send-some-headers-whe.patch", diff --git a/patches/core/0052-fix-ssl-wp-content-url.patch b/patches/core/0052-fix-ssl-wp-content-url.patch index 585848d1..12bb1287 100644 --- a/patches/core/0052-fix-ssl-wp-content-url.patch +++ b/patches/core/0052-fix-ssl-wp-content-url.patch @@ -3,6 +3,7 @@ From: lechuck <l3chuck@autistici.org> Date: Fri, 18 Apr 2014 19:14:16 +0000 Subject: [PATCH 052/229] Initial commit Note: (lucha 2020-07-04) I think this is obsolete and could be removed. +Note: (lucha 2021-02-21) The constant is only used by a single theme, elegant-grunge diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php index 98c8e483..6f6803f4 100644 -- GitLab