Tweak to 2487.

git-svn-id: https://develop.svn.wordpress.org/trunk@2488 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-03-29 05:39:23 +00:00
parent 28ff7f84e1
commit 56b9394fb8
1 changed files with 1 additions and 2 deletions

View File

@ -579,13 +579,12 @@ function make_site_theme_from_oldschool($theme_name, $template) {
if ($lines) {
$f = fopen("$site_dir/$newfile", 'w');
$siteurl = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'");
foreach ($lines as $line) {
if (preg_match('/require.*wp-blog-header/', $line))
$line = '//' . $line;
// Update stylesheet references.
$line = str_replace("<?php echo $siteurl; ?>/wp-layout.css", "<?php bloginfo('stylesheet_url'); ?>", $line);
$line = str_replace("<?php echo __get_option('siteurl'); ?>/wp-layout.css", "<?php bloginfo('stylesheet_url'); ?>", $line);
// Update comments template inclusion.
$line = str_replace("<?php include(ABSPATH . 'wp-comments.php'); ?>", "<?php comments_template(); ?>", $line);