WordPress.org

Make WordPress Core

Ticket #12550: 12550.patch

File 12550.patch, 718 bytes (added by TobiasBg, 4 years ago)

Patch removes extra argument from function call

  • wp-includes/functions.php

     
    19071907                echo $nonce_field; 
    19081908 
    19091909        if ( $referer ) 
    1910                 wp_referer_field( $echo, 'previous' ); 
     1910                wp_referer_field( $echo ); 
    19111911 
    19121912        return $nonce_field; 
    19131913} 
     
    19251925 * @param bool $echo Whether to echo or return the referer field. 
    19261926 * @return string Referer field. 
    19271927 */ 
    1928 function wp_referer_field( $echo = true) { 
     1928function wp_referer_field( $echo = true ) { 
    19291929        $ref = esc_attr( $_SERVER['REQUEST_URI'] ); 
    19301930        $referer_field = '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />'; 
    19311931