Update stylesheet and comments references when upgrading old templates.

git-svn-id: https://develop.svn.wordpress.org/trunk@2049 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-01-05 21:57:51 +00:00
parent 785835599e
commit 4d551c314d
1 changed files with 7 additions and 0 deletions

View File

@ -563,6 +563,13 @@ function make_site_theme_from_oldschool($theme_name, $template) {
else
$line = '//' . $line;
}
// Update stylesheet references.
$line = str_replace("<?php echo get_settings('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);
fwrite($f, "{$line}\n");
}
fclose($f);