WordPress.org

Make WordPress Core

Changeset 35804


Ignore:
Timestamp:
12/06/2015 10:03:33 PM (4 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-constants.php

    r35739 r35804  
    133133function wp_plugin_directory_constants() {
    134134    if ( !defined('WP_CONTENT_URL') )
    135         define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
     135        define( 'WP_CONTENT_URL', site_url() . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
    136136
    137137    /**
Note: See TracChangeset for help on using the changeset viewer.