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:
parent
5af5da1547
commit
7ad6f07f87
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue