From d78b3c9f92e32c5270619667213a688ab92a1044 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sun, 9 May 2010 07:22:10 +0000 Subject: [PATCH] Omit extraneous argument. props coffee2code. fixes #10057 git-svn-id: http://svn.automattic.com/wordpress/trunk@14522 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 3f343284d..e1b35f2e6 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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 = '';