[wp-cvs] wordpress/wp-admin admin.php,1.3,1.4

Matthew Mullenweg saxmatt at users.sourceforge.net
Thu Dec 16 02:56:59 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11810/wp-admin

Modified Files:
	admin.php 
Log Message:
Comments refactoring and cleanup

Index: admin.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/admin.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** admin.php	14 Dec 2004 03:00:48 -0000	1.3
--- admin.php	16 Dec 2004 02:56:55 -0000	1.4
***************
*** 18,38 ****
  $time_format = get_settings('time_format');
  
- function add_magic_quotes($array) {
- 	foreach ($array as $k => $v) {
- 		if (is_array($v)) {
- 			$array[$k] = add_magic_quotes($v);
- 		} else {
- 			$array[$k] = addslashes($v);
- 		}
- 	}
- 	return $array;
- }
- 
- if (!get_magic_quotes_gpc()) {
- 	$_GET    = add_magic_quotes($_GET);
- 	$_POST   = add_magic_quotes($_POST);
- 	$_COOKIE = add_magic_quotes($_COOKIE);
- }
- 
  $wpvarstoreset = array('profile','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');
  for ($i=0; $i<count($wpvarstoreset); $i += 1) {
--- 18,21 ----




More information about the cvs mailing list