Tweak to 2487.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-03-29 05:39:23 +00:00
parent c48ebdadd7
commit 5534514f39
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);