WordPress.org

Make WordPress Core

Changeset 25399


Ignore:
Timestamp:
09/12/2013 01:32:41 PM (7 years ago)
Author:
nacin
Message:

Return false from wp_get_referer() if it is called before wp_validate_redirect() is defined.

see #25294.

File:
1 edited

Legend:

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

    r25396 r25399  
    13041304 */
    13051305function wp_get_referer() {
     1306    if ( ! function_exists( 'wp_validate_redirect' ) )
     1307        return false;
    13061308    $ref = false;
    13071309    if ( ! empty( $_REQUEST['_wp_http_referer'] ) )
Note: See TracChangeset for help on using the changeset viewer.