[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:42:10 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:
----------------------------------------+---------------------

Comment (by Rarst):

 I remember having issues with `REST_REQUEST` being defined relatively
 late, so it's not as reliable as `DOING_AJAX` (which is hardcoded right on
 top of its endpoint). Timing needs to be checked out there against what
 the check is doing.

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


More information about the wp-trac mailing list