diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index da6f0b7c91..5c3b764159 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -563,6 +563,13 @@ function make_site_theme_from_oldschool($theme_name, $template) { else $line = '//' . $line; } + + // Update stylesheet references. + $line = str_replace("/wp-layout.css", "", $line); + + // Update comments template inclusion. + $line = str_replace("", "", $line); + fwrite($f, "{$line}\n"); } fclose($f);