Changeset 3920

Show
Ignore:
Timestamp:
06/24/06 18:22:57 (3 years ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-includes/functions.php

    r3909 r3920  
    23262326 
    23272327function wp_referer_field() { 
    2328     $ref = ( false === wp_get_referer() ) ? $_SERVER['REQUEST_URI'] : wp_get_referer(); 
    2329     $ref = wp_specialchars(stripslashes($ref)); 
     2328    $ref = wp_specialchars($_SERVER['REQUEST_URI']); 
    23302329    echo '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />'; 
    23312330    if ( wp_get_original_referer() ) {