[wp-cvs] wordpress/wp-admin theme-editor.php,1.7,1.8
Ryan Boren
rboren at users.sourceforge.net
Thu Nov 25 16:15:29 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31884
Modified Files:
theme-editor.php
Log Message:
Pass theme in URI when sending update header. Bug 491.
Index: theme-editor.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/theme-editor.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** theme-editor.php 23 Nov 2004 17:51:34 -0000 1.7
--- theme-editor.php 25 Nov 2004 16:15:27 -0000 1.8
***************
*** 45,55 ****
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
! header("Location: theme-editor.php?file=$file&a=te");
} else {
! header("Location: theme-editor.php?file=$file");
}
--- 45,56 ----
$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&theme=$theme&a=te");
} else {
! header("Location: theme-editor.php?file=$file&theme=$theme");
}
More information about the cvs
mailing list