WordPress.org

Make WordPress Core

Ticket #25294: 25294.2.diff

File 25294.2.diff, 518 bytes (added by nacin, 7 years ago)

A patch for core.

  • src/wp-includes/functions.php

     
    13031303 * @return string|bool False on failure. Referer URL on success.
    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'] ) )
    13081310                $ref = wp_unslash( $_REQUEST['_wp_http_referer'] );