Make WordPress Core


Ignore:
Timestamp:
03/29/2005 05:39:23 AM (20 years ago)
Author:
ryan
Message:

Tweak to 2487.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade-functions.php

    r2487 r2488  
    580580            $f = fopen("$site_dir/$newfile", 'w');
    581581
    582             $siteurl = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'");
    583582            foreach ($lines as $line) {
    584583                if (preg_match('/require.*wp-blog-header/', $line))
     
    586585
    587586                // Update stylesheet references.
    588                 $line = str_replace("<?php echo $siteurl; ?>/wp-layout.css", "<?php bloginfo('stylesheet_url'); ?>", $line);
     587                $line = str_replace("<?php echo __get_option('siteurl'); ?>/wp-layout.css", "<?php bloginfo('stylesheet_url'); ?>", $line);
    589588
    590589                // Update comments template inclusion.
Note: See TracChangeset for help on using the changeset viewer.