[wp-trac] [WordPress Trac] #29594: Basic Cookie Authentication from External Database

WordPress Trac noreply at wordpress.org
Tue Sep 9 05:42:47 UTC 2014

#29594: Basic Cookie Authentication from External Database
 Reporter:  LPH2005          |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Role/Capability  |    Version:  4.0
 Severity:  normal           |   Keywords:
  Focuses:                   |
 Several bridges (WP plugins) linking different forum software packages
 rely on the wp_set_auth_cookie($user_id,0,0) to get the user logged into
 WordPress. With the change in WP 4.0, this single line no longer works.
 Instead, the user is logged into the site but can no longer publish a post
 or page, nor update a plugin etc. Whereas the same user would be able to
 do all those things in 3.9.2 and below.

 I've come across this issue for three different bridges.

 The change is the addition of the token.

 [Suggestion] Maybe there needs to be some instruction in the documents on
 how WP developers want the external authorization to happen for login plus
 capabilities to post.

 Is this a bug with just the single line (wp_set_auth_cookie) not
 functioning as intended or do devs expect plugin developers to use other
 lines of code to get the user logged in .. and authorized to publish,
 post, etc. ?

Ticket URL: <https://core.trac.wordpress.org/ticket/29594>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list