[wp-trac] [WordPress Trac] #45727: is_admin_bar_showing() is true in REST API requests

WordPress Trac noreply at wordpress.org
Thu Dec 20 15:10:15 UTC 2018


#45727: is_admin_bar_showing() is true in REST API requests
--------------------------+-----------------------------
 Reporter:  Rarst         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  low           |  Milestone:  Awaiting Review
Component:  Toolbar       |    Version:  trunk
 Severity:  minor         |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 `is_admin_bar_showing()` returns `true` if logged and looking at REST API
 request.

 This is inconsistent with it being explicitly `false` for XML RPC and Ajax
 requests.

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


More information about the wp-trac mailing list