WordPress.org

Make WordPress Core

Ticket #7028: fix_no-style_install.diff

File fix_no-style_install.diff, 528 bytes (added by Potter_System, 7 years ago)

Patch for #7028

  • script-loader.php

     
    204204} 
    205205 
    206206function wp_default_styles( &$styles ) { 
    207         $styles->base_url = site_url(); 
     207        $styles->base_url = WP_INSTALLING ? $_SERVER['HTTP_HOST'] . substr($_SERVER['PHP_SELF'], 0 , -21) : site_url(); 
    208208        $styles->default_version = get_bloginfo( 'version' ); 
    209209        $styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ? 'rtl' : 'ltr'; 
    210210