Opened 7 years ago
Closed 7 years ago
#45727 closed defect (bug) (fixed)
is_admin_bar_showing() is true in REST API requests
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.1 | Priority: | low |
| Severity: | minor | Version: | 5.1 |
| Component: | Toolbar | Keywords: | good-first-bug has-patch |
| Focuses: | Cc: |
Description (last modified by )
is_admin_bar_showing() returns true if logged in and looking at REST API request.
This is inconsistent with it being explicitly false for XML RPC and Ajax requests.
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
It already checks for
XMLRPC_REQUEST,DOING_AJAX, andIFRAME_REQUEST.Just need to add a check for
REST_REQUEST, by the looks of it.