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

WordPress Trac noreply at wordpress.org
Thu Dec 20 16:34:07 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:  5.1
Component:  Toolbar                     |     Version:  trunk
 Severity:  minor                       |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+---------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => needs-patch good-first-bug
 * milestone:  Awaiting Review => 5.1


Comment:

 It already checks for `XMLRPC_REQUEST`, `DOING_AJAX`, and
 `IFRAME_REQUEST`.

 Just need to add a check for `REST_REQUEST`, by the looks of it.

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


More information about the wp-trac mailing list