WordPress.org

Make WordPress Core

Changeset 10368


Ignore:
Timestamp:
01/16/2009 05:45:44 AM (9 years ago)
Author:
azaozz
Message:

Stop notices when outputting concatenated scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r10367 r10368  
    4141
    4242    $scripts->base_url = $guessurl;
    43     $scripts->content_url = WP_CONTENT_URL;
     43    $scripts->content_url = defined('WP_CONTENT_URL')? WP_CONTENT_URL : '';
    4444    $scripts->default_version = get_bloginfo( 'version' );
    4545    $scripts->default_dirs = array('/wp-admin/js/', '/wp-includes/js/');
     
    404404
    405405    $styles->base_url = $guessurl;
    406     $styles->content_url = WP_CONTENT_URL;
     406    $styles->content_url = defined('WP_CONTENT_URL')? WP_CONTENT_URL : '';
    407407    $styles->default_version = get_bloginfo( 'version' );
    408408    $styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ? 'rtl' : 'ltr';
Note: See TracChangeset for help on using the changeset viewer.