[wp-trac] Re: [WordPress Trac] #2800: wp_nonce_field() could pass
along HTTP_REFERER info
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 11 09:30:29 GMT 2006
#2800: wp_nonce_field() could pass along HTTP_REFERER info
----------------------------+-----------------------------------------------
Id: 2800 | Status: new
Component: Administration | Modified: Sun Jun 11 09:30:29 2006
Severity: enhancement | Milestone: 2.1
Priority: normal | Version: 2.1
Owner: anonymous | Reporter: markjaquith
----------------------------+-----------------------------------------------
Comment (by markjaquith):
Something like this.
If your post will embark on a multiple-request journey before needing to
return, you just manually invoke {{{wp_original_referer_field()}}} in the
form. Forms in the interim only need to call the nonce call, and it'll
pass on the original referer value. When you're ready for it, just call
{{{wp_get_original_referer()}}} and you can zoom back to your starting
location. An example case for that would be the new user editing stuff,
whereby you return to the exact user search/browse page that you were on
after you've performed multiple edits on a user's profile.
--
Ticket URL: <http://trac.wordpress.org/ticket/2800>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list