Make WordPress Core

Changeset 1964 for trunk/wp-login.php


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

Comments refactoring and cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r1911 r1964  
    11<?php
    2 require('./wp-config.php');
    3 
    4 if (!function_exists('add_magic_quotes')) {
    5         function add_magic_quotes($array) {
    6                 foreach ($array as $k => $v) {
    7                         if (is_array($v)) {
    8                                 $array[$k] = add_magic_quotes($v);
    9                         } else {
    10                                 $array[$k] = addslashes($v);
    11                         }
    12                 }
    13                 return $array;
    14         }
    15 }
    16 
    17 if (!get_magic_quotes_gpc()) {
    18         $_GET    = add_magic_quotes($_GET);
    19         $_POST   = add_magic_quotes($_POST);
    20         $_COOKIE = add_magic_quotes($_COOKIE);
    21 }
     2require( dirname(__FILE__) . '/wp-config.php' );
    223
    234$wpvarstoreset = array('action');
Note: See TracChangeset for help on using the changeset viewer.