Index: wp-includes/functions.php
===================================================================
--- wp-includes/functions.php	(revision 17789)
+++ wp-includes/functions.php	(working copy)
@@ -1972,12 +1972,13 @@
 function wp_nonce_field( $action = -1, $name = "_wpnonce", $referer = true , $echo = true ) {
 	$name = esc_attr( $name );
 	$nonce_field = '<input type="hidden" id="' . $name . '" name="' . $name . '" value="' . wp_create_nonce( $action ) . '" />';
+
+	if ( $referer )
+		$nonce_field .= wp_referer_field( false );
+
 	if ( $echo )
 		echo $nonce_field;
 
-	if ( $referer )
-		wp_referer_field( $echo );
-
 	return $nonce_field;
 }
 
