From 4d551c314d942c5e11a02740b280cc9f161db1a6 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 5 Jan 2005 21:57:51 +0000 Subject: [PATCH] Update stylesheet and comments references when upgrading old templates. git-svn-id: https://develop.svn.wordpress.org/trunk@2049 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/upgrade-functions.php | 7 +++++++ 1 file changed, 7 insertions(+) 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);