[wp-trac] [WordPress Trac] #15243: Incorrect user is set when using Ajax Nonces over HTTPS Connection

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 19 18:23:03 UTC 2010


#15243: Incorrect user is set when using Ajax Nonces over HTTPS Connection
----------------------------+-----------------------------------------------
 Reporter:  jeremysawesome  |       Owner:                                                
     Type:  defect (bug)    |      Status:  new                                           
 Priority:  normal          |   Milestone:  Awaiting Review                               
Component:  General         |     Version:  3.0.1                                         
 Severity:  normal          |    Keywords:  ajax, user, nonce, verify, https, fail, secure
----------------------------+-----------------------------------------------

Comment(by jonbyrd):

 I ran into this problem myself, but I was having errors on the HTTP
 requests. I tracked the error through the wp_get_current_user() function
 and found that the $current_user global variable was being modified by a
 random plugin.

 The only change required is $user->id; needs to be $user->ID; in
 pluggable.php
 Or you can locate the plugin that's causing the error and remove it.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15243#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list