diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index baade87aca..290b477f7c 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -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("/wp-layout.css", "", $line); + $line = str_replace("/wp-layout.css", "", $line); // Update comments template inclusion. $line = str_replace("", "", $line);