WordPress.org

Make WordPress Core

Ticket #13941: default-contstants.patch

File default-contstants.patch, 604 bytes (added by micropat, 8 years ago)
  • default-constants.php

     
    7575 */ 
    7676function wp_plugin_directory_constants( ) { 
    7777        if ( !defined('WP_CONTENT_URL') ) 
    78                 define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up 
     78                define( 'WP_CONTENT_URL', site_url() . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up 
    7979 
    8080        /** 
    8181         * Allows for the plugins directory to be moved from the default location.