Update stylesheet and comments references when upgrading old templates.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-01-05 21:57:51 +00:00
parent 5af5da1547
commit 7ad6f07f87
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);