[wp-trac] [WordPress Trac] #60868: Persistence layer tries to make a REST API call to '/wp/v2/users/me' when user is not logged in

WordPress Trac noreply at wordpress.org
Sun Mar 31 09:39:53 UTC 2024


#60868: Persistence layer tries to make a REST API call to '/wp/v2/users/me' when
user is not logged in
---------------------------+------------------------------
 Reporter:  chamois_blanc  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  6.4.3
 Severity:  minor          |  Resolution:
 Keywords:                 |     Focuses:  javascript
---------------------------+------------------------------
Changes (by swissspidy):

 * keywords:  2nd-opinion =>
 * focuses:  javascript, rest-api, privacy => javascript
 * component:  General => Script Loader


Comment:

 Definitely ran into this too.

 Best to report this on the Gutenberg repo though where that code is
 maintained.

 The logged-in check must not depend on the DOM, that isn‘t reliable.

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


More information about the wp-trac mailing list