[wp-trac] [WordPress Trac] #45727: is_admin_bar_showing() is true in REST API requests
WordPress Trac
noreply at wordpress.org
Thu Dec 20 17:24:49 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 SergeyBiryukov):
Right, `REST_REQUEST` is not defined until `parse_request` runs.
`wp_is_json_request()` should be used then, see [43730] for #44534.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45727#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list