From 5ce78795484c4ac708ecd27dfc37a6cc7b8cbbff Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 22 Dec 2015 13:01:31 +0000 Subject: [PATCH] Revert [35804]. This change has unintended side effects, notably that media URLs in the admin area now unexpectedly use the `https` scheme. A more comprehensive approach will be taken in 4.5. See #13941, #35120 git-svn-id: https://develop.svn.wordpress.org/trunk@36061 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/default-constants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/default-constants.php b/src/wp-includes/default-constants.php index d7a0e4efa8..c9092bd2cc 100644 --- a/src/wp-includes/default-constants.php +++ b/src/wp-includes/default-constants.php @@ -132,7 +132,7 @@ function wp_initial_constants() { */ function wp_plugin_directory_constants() { if ( !defined('WP_CONTENT_URL') ) - define( 'WP_CONTENT_URL', site_url() . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up + define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up /** * Allows for the plugins directory to be moved from the default location.