[wp-trac] [WordPress Trac] #42790: Permit basic authentication to the REST API over SSL

WordPress Trac noreply at wordpress.org
Mon Feb 24 16:35:48 UTC 2020


#42790: Permit basic authentication to the REST API over SSL
-----------------------------+------------------------------
 Reporter:  kadamwhite       |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  REST API         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by georgestephanis):

 Minor correction on 42790.1.diff --

 patch line 303 -- `$GLOBALS['user']` should be `$GLOBALS['current_user']`,
 but it may be able to swap to `wp_set_current_user()` instead -- that
 function can take a WP_User object as easily as an id for the first
 parameter -- I forget if there was a reason why I hadn't done that.

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


More information about the wp-trac mailing list