Omit extraneous argument. props coffee2code. fixes #10057
git-svn-id: http://svn.automattic.com/wordpress/trunk@14522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2eab801eec
commit
d78b3c9f92
|
@ -1911,7 +1911,7 @@ function wp_nonce_field( $action = -1, $name = "_wpnonce", $referer = true , $ec
|
|||
echo $nonce_field;
|
||||
|
||||
if ( $referer )
|
||||
wp_referer_field( $echo, 'previous' );
|
||||
wp_referer_field( $echo );
|
||||
|
||||
return $nonce_field;
|
||||
}
|
||||
|
@ -1929,7 +1929,7 @@ function wp_nonce_field( $action = -1, $name = "_wpnonce", $referer = true , $ec
|
|||
* @param bool $echo Whether to echo or return the referer field.
|
||||
* @return string Referer field.
|
||||
*/
|
||||
function wp_referer_field( $echo = true) {
|
||||
function wp_referer_field( $echo = true ) {
|
||||
$ref = esc_attr( $_SERVER['REQUEST_URI'] );
|
||||
$referer_field = '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />';
|
||||
|
||||
|
|
Loading…
Reference in New Issue