WordPress.org

Make WordPress Core

Ticket #10057: 10057.diff

File 10057.diff, 733 bytes (added by coffee2code, 9 years ago)

Patch mentioned in ticket submission

  • wp-includes/functions.php

     
    18301830                echo $nonce_field;
    18311831
    18321832        if ( $referer )
    1833                 wp_referer_field( $echo, 'previous' );
     1833                wp_original_referer_field( $echo, 'previous' );
    18341834
    18351835        return $nonce_field;
    18361836}
     
    18481848 * @param bool $echo Whether to echo or return the referer field.
    18491849 * @return string Referer field.
    18501850 */
    1851 function wp_referer_field( $echo = true) {
     1851function wp_referer_field( $echo = true ) {
    18521852        $ref = esc_attr( $_SERVER['REQUEST_URI'] );
    18531853        $referer_field = '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />';
    18541854