Make WordPress Core


Ignore:
Timestamp:
12/16/2004 02:57:05 AM (21 years ago)
Author:
saxmatt
Message:

Comments refactoring and cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r1947 r1964  
    1717$date_format = get_settings('date_format');
    1818$time_format = get_settings('time_format');
    19 
    20 function add_magic_quotes($array) {
    21     foreach ($array as $k => $v) {
    22         if (is_array($v)) {
    23             $array[$k] = add_magic_quotes($v);
    24         } else {
    25             $array[$k] = addslashes($v);
    26         }
    27     }
    28     return $array;
    29 }
    30 
    31 if (!get_magic_quotes_gpc()) {
    32     $_GET    = add_magic_quotes($_GET);
    33     $_POST   = add_magic_quotes($_POST);
    34     $_COOKIE = add_magic_quotes($_COOKIE);
    35 }
    3619
    3720$wpvarstoreset = array('profile','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');
Note: See TracChangeset for help on using the changeset viewer.