mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-02 11:21:57 +01:00
Use site_url()
when generating WP_CONTENT_URL
so it correctly adjusts for pages served over HTTPS. This mainly only affects old plugins which still use WP_CONTENT_URL
instead of the newer plugins_url()
function.
Fixes #13941 Props micropat Built from https://develop.svn.wordpress.org/trunk@35804 git-svn-id: http://core.svn.wordpress.org/trunk@35768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4ace55b0dc
commit
d35bc1b936
@ -132,7 +132,7 @@ function wp_initial_constants() {
|
||||
*/
|
||||
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
|
||||
define( 'WP_CONTENT_URL', site_url() . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
|
||||
|
||||
/**
|
||||
* Allows for the plugins directory to be moved from the default location.
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-35803';
|
||||
$wp_version = '4.5-alpha-35804';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user