WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#4978 closed enhancement (fixed)

get_wp_nonce_field() that returns the fields

Reported by: ozh Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.3
Component: Security Keywords: has-patch nonce wp_nonce_field 2nd-opinion
Focuses: Cc:

Description

As of 2.3 there's no way to get the nonce fields returned (and not echoed) except than output buffer them.

Here is a proposal for a new function get_wp_nonce_field() (that doesn't change, of course, the way wp_nonce_field() has worked till now)

Attachments (1)

get_wp_nonce_field.diff (2.3 KB) - added by ozh 7 years ago.
Proposal for new function get_wp_nonce_field()

Download all attachments as: .zip

Change History (5)

ozh7 years ago

Proposal for new function get_wp_nonce_field()

comment:1 ozh7 years ago

  • Keywords has-patch nonce wp_nonce_field 2nd-opinion added

comment:2 pishmishy6 years ago

A silly question perhaps, but since the ticket hasn't seen much activity it may be worth asking. What need do you have for this proposed function?

comment:3 ffemtcj6 years ago

  • Milestone changed from 2.5 to 2.6

comment:4 westi6 years ago

  • Milestone changed from 2.6 to 2.5
  • Resolution set to fixed
  • Status changed from new to closed

This has already been fixes of sorts.

We have an $echo option on all the nonce functions now instead of adding extra code.

Fixed by [7323].

Note: See TracTickets for help on using tickets.