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:
parent
785835599e
commit
4d551c314d
@ -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
Block a user