[wp-trac] [WordPress Trac] #45235: REST API: Setting _locale can cause fatal errors

WordPress Trac noreply at wordpress.org
Wed Oct 31 02:21:44 UTC 2018


#45235: REST API: Setting _locale can cause fatal errors
--------------------------+-----------------------
 Reporter:  pento         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  5.0
Component:  I18N          |     Version:  5.0
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |     Focuses:  rest-api
--------------------------+-----------------------
Changes (by danielbachhuber):

 * Attachment "45235.2.diff" added.

 Avoid calling is_user_logged_in() entirely, as get_user_locale() handles
 the scenario

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


More information about the wp-trac mailing list