Make WordPress Core

Changeset 3920


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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() ) {
Note: See TracChangeset for help on using the changeset viewer.