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 git-svn-id: https://develop.svn.wordpress.org/trunk@35804 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
15aed980c8
commit
872bfdeed0
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue