Make WordPress Core

Changeset 3919


Ignore:
Timestamp:
06/24/2006 06:17:10 PM (18 years ago)
Author:
ryan
Message:

Have wp_referer_field() set the referer to the current page. fixes #2800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r3908 r3919  
    816816
    817817function wp_referer_field() {
    818     $ref = ( false === wp_get_referer() ) ? $_SERVER['REQUEST_URI'] : wp_get_referer();
    819     $ref = wp_specialchars(stripslashes($ref));
     818    $ref = wp_specialchars($_SERVER['REQUEST_URI']);
    820819    echo '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />';
    821820    if ( wp_get_original_referer() ) {
Note: See TracChangeset for help on using the changeset viewer.