Yes, I did mean original... props coffee2code. fixes #10057

git-svn-id: https://develop.svn.wordpress.org/trunk@12331 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2009-12-07 17:57:48 +00:00
parent 1059fec62e
commit 8b72be4ed2
1 changed files with 2 additions and 2 deletions

View File

@ -1836,7 +1836,7 @@ function wp_nonce_field( $action = -1, $name = "_wpnonce", $referer = true , $ec
echo $nonce_field;
if ( $referer )
wp_referer_field( $echo, 'previous' );
wp_original_referer_field( $echo, 'previous' );
return $nonce_field;
}
@ -1854,7 +1854,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 . '" />';