WordPress.org

Make WordPress Core

Ticket #10057: 10057.2.diff

File 10057.2.diff, 712 bytes (added by coffee2code, 8 years ago)

Patch to remove extraneous argument

  • wp-includes/functions.php

     
    18361836                echo $nonce_field;
    18371837
    18381838        if ( $referer )
    1839                 wp_referer_field( $echo, 'previous' );
     1839                wp_referer_field( $echo );
    18401840
    18411841        return $nonce_field;
    18421842}
     
    18541854 * @param bool $echo Whether to echo or return the referer field.
    18551855 * @return string Referer field.
    18561856 */
    1857 function wp_referer_field( $echo = true) {
     1857function wp_referer_field( $echo = true ) {
    18581858        $ref = esc_attr( $_SERVER['REQUEST_URI'] );
    18591859        $referer_field = '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />';
    18601860