[wp-trac] [WordPress Trac] #12550: wp_nonce_field() passes unnecessary argument
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 7 21:53:56 UTC 2010
#12550: wp_nonce_field() passes unnecessary argument
--------------------------+-------------------------------------------------
Reporter: TobiasBg | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: General | Version:
Severity: normal | Keywords: has-patch commit
--------------------------+-------------------------------------------------
{{{wp_nonce_field()}}} [http://core.trac.wordpress.org/browser/trunk/wp-
includes/functions.php#L1910 passes] a second argument (with the value
'previous') to the function {{{wp_referer_field()}}}. However, that
function only [http://core.trac.wordpress.org/browser/trunk/wp-
includes/functions.php#L1928 expects] one parameter, so the second one is
obsolete and should be removed.
Attached patch removes the unnecessary argument. It is the only occurance
(of two total) in core where {{{wp_referer_field()}}} gets passed two
parameters.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12550>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list