[wp-cvs] wordpress/wp-admin options.php,1.35,1.36
Ryan Boren
rboren at users.sourceforge.net
Wed Oct 20 21:28:39 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14313/wp-admin
Modified Files:
options.php
Log Message:
Introducing add_query_arg() and remove_query_arg(). Props: Owen Winkler.
Index: options.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/options.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** options.php 19 Oct 2004 03:03:05 -0000 1.35
--- options.php 20 Oct 2004 21:28:36 -0000 1.36
***************
*** 66,71 ****
}
! $referred = str_replace('?updated=true' , '', $_SERVER['HTTP_REFERER']);
! $goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true';
$goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback);
header('Location: ' . $goback);
--- 66,73 ----
}
! //$referred = str_replace('?updated=true' , '', $_SERVER['HTTP_REFERER']);
! $referred = remove_query_arg('updated' , $_SERVER['HTTP_REFERER']);
! //$goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true';
! $goback = add_query_arg('updated', 'true', $_SERVER['HTTP_REFERER']);
$goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback);
header('Location: ' . $goback);
More information about the cvs
mailing list