Pass theme in URI when sending update header. Bug 491.

git-svn-id: https://develop.svn.wordpress.org/trunk@1881 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-11-25 16:15:27 +00:00
parent 933590a302
commit d003d51e07
1 changed files with 3 additions and 2 deletions

View File

@ -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();