From f0771c4a91f3d6526aaebff757c0a82cb4d938c9 Mon Sep 17 00:00:00 2001
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
--- a/wp-includes/default-constants.php
+++ b/wp-includes/default-constants.php
@@ -148,9 +148,10 @@ function wp_initial_constants() {
  * @since 3.0.0
  */
 function wp_plugin_directory_constants() {
-	if ( ! defined( 'WP_CONTENT_URL' ) ) {
-		define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' ); // Full URL - WP_CONTENT_DIR is defined further up.
-	}
+        // patched by lesion [http://core.trac.wordpress.org/ticket/13941]
+	if ( !defined('WP_CONTENT_URL') )
+		define( 'WP_CONTENT_URL', site_url('wp-content' ) );
+		#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.
-- 
2.17.1