mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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:
parent
933590a302
commit
d003d51e07
@ -44,13 +44,14 @@ case 'update':
|
|||||||
}
|
}
|
||||||
|
|
||||||
$newcontent = stripslashes($_POST['newcontent']);
|
$newcontent = stripslashes($_POST['newcontent']);
|
||||||
|
$theme = urlencode($theme);
|
||||||
if (is_writeable($real_file)) {
|
if (is_writeable($real_file)) {
|
||||||
$f = fopen($real_file, 'w+');
|
$f = fopen($real_file, 'w+');
|
||||||
fwrite($f, $newcontent);
|
fwrite($f, $newcontent);
|
||||||
fclose($f);
|
fclose($f);
|
||||||
header("Location: theme-editor.php?file=$file&a=te");
|
header("Location: theme-editor.php?file=$file&theme=$theme&a=te");
|
||||||
} else {
|
} else {
|
||||||
header("Location: theme-editor.php?file=$file");
|
header("Location: theme-editor.php?file=$file&theme=$theme");
|
||||||
}
|
}
|
||||||
|
|
||||||
exit();
|
exit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user