WordPress.org

Make WordPress Core

Ticket #13941: 13941.diff

File 13941.diff, 648 bytes (added by johnbillion, 5 years ago)
  • src/wp-includes/default-constants.php

     
    132132 */
    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        /**
    138138         * Allows for the plugins directory to be moved from the default location.