[wp-trac] Re: [WordPress Trac] #2678: Nonces instead of referers

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 22 00:41:54 GMT 2006


#2678: Nonces instead of referers
----------------------------+-----------------------------------------------
       Id:  2678            |      Status:  new                     
Component:  Administration  |    Modified:  Sat Apr 22 00:41:54 2006
 Severity:  normal          |   Milestone:                          
 Priority:  normal          |     Version:  2.1                     
    Owner:  anonymous       |    Reporter:  ringmaster              
----------------------------+-----------------------------------------------
Comment (by ringmaster):

 @mdawaffe:  I think figuring out how to stuff custom dialogs into
 check_admin_referer() will be more trouble than it's worth.  If absolutely
 necessary, perhaps an optional third parameter:

 {{{
 check_admin_referer('dosomething', false, 'do something really funky');
 }}}

 Resulting in:
 {{{
 You're trying to do something really funky.
 Are you sure you want to do something really funky?
 }}}

 That could wreak havok on the translators, though.

 There was a reason I had concocted for not passing discrete actions into
 check_admin_referer(), but I can't recall it now, and your code looks
 good.  I like that idea.  +1 for that.

 @ryan: You're nuts, man.  ;)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2678>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list