Skip to content
Snippets Groups Projects
Commit 13221947 authored by ale's avatar ale
Browse files

Remove unused core patch

parent a30acab7
Branches
No related tags found
1 merge request!391Switch to roots/wordpress
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment