Make WordPress Core


Ignore:
Timestamp:
09/12/2013 01:35:35 PM (11 years ago)
Author:
nacin
Message:

Return false from wp_get_original_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

    r25399 r25400  
    13271327 */
    13281328function wp_get_original_referer() {
    1329     if ( !empty( $_REQUEST['_wp_original_http_referer'] ) )
     1329    if ( ! empty( $_REQUEST['_wp_original_http_referer'] ) && function_exists( 'wp_validate_redirect' ) )
    13301330        return wp_validate_redirect( wp_unslash( $_REQUEST['_wp_original_http_referer'] ), false );
    13311331    return false;
Note: See TracChangeset for help on using the changeset viewer.