From aa2dd4d548796ef0cbaf6b843c7ff89faec3f231 Mon Sep 17 00:00:00 2001 From: rboren Date: Thu, 25 Nov 2004 16:15:27 +0000 Subject: [PATCH] Pass theme in URI when sending update header. Bug 491. git-svn-id: http://svn.automattic.com/wordpress/trunk@1881 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/theme-editor.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 2e6000291..f65d91af1 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -44,13 +44,14 @@ case 'update': } $newcontent = stripslashes($_POST['newcontent']); + $theme = urlencode($theme); if (is_writeable($real_file)) { $f = fopen($real_file, 'w+'); fwrite($f, $newcontent); fclose($f); - header("Location: theme-editor.php?file=$file&a=te"); + header("Location: theme-editor.php?file=$file&theme=$theme&a=te"); } else { - header("Location: theme-editor.php?file=$file"); + header("Location: theme-editor.php?file=$file&theme=$theme"); } exit();