Make WordPress Core

Changeset 3921


Ignore:
Timestamp:
06/24/2006 09:14:58 PM (18 years ago)
Author:
ryan
Message:

Use wp_get_referer(). Props robmiller. fixes #2855

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r3907 r3921  
    165165if ( !empty($_REQUEST['popupurl']) )
    166166    echo wp_specialchars($_REQUEST['popupurl']);
    167 else if ( url_to_postid($_SERVER['HTTP_REFERER']) == $post_ID )
     167else if ( url_to_postid(wp_get_referer()) == $post_ID )
    168168    echo 'redo';
    169169else
    170     echo wp_specialchars($_SERVER['HTTP_REFERER']);
     170    echo wp_specialchars(wp_get_referer());
    171171?>" /></p>
    172172
  • trunk/wp-admin/edit-form.php

    r2762 r3921  
    6565      echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' .  __('Advanced Editing &raquo;') . '" />';
    6666  } ?>
    67   <input name="referredby" type="hidden" id="referredby" value="<?php if (isset($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']); ?>" />
     67  <input name="referredby" type="hidden" id="referredby" value="<?php if (isset(wp_get_referer())) echo urlencode($_SERVER['HTTP_REFERER']); ?>" />
    6868</p>
    6969
  • trunk/wp-pass.php

    r2436 r3921  
    88setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
    99
    10 wp_redirect($_SERVER['HTTP_REFERER']);
     10wp_redirect(wp_get_referer());
    1111?>
Note: See TracChangeset for help on using the changeset viewer.