[wp-trac] [WordPress Trac] #45475: Use plugin-friendly is_user_logged_in() to determine logged-in/nopriv in admin-post.php

WordPress Trac noreply at wordpress.org
Wed Jan 16 05:40:09 UTC 2019


#45475: Use plugin-friendly is_user_logged_in() to determine logged-in/nopriv in
admin-post.php
----------------------------+---------------------
 Reporter:  jmdodd          |       Owner:  pento
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  5.1
Component:  Administration  |     Version:  2.6
 Severity:  minor           |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------
Changes (by pento):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44615" 44615]:
 {{{
 #!CommitTicketReference repository="" revision="44615"
 Admin: Use `is_user_logged_in()` instead of `wp_validate_auth_cookie()` in
 `admin-post.php`.

 This matches the authentication check in `admin-ajax.php`, and allows the
 authentication method to be filtered.

 Props jmdodd.
 Fixes #45475.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45475#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list