Skip to content
Commit a78890c7 authored by Jake Spurlock's avatar Jake Spurlock
Browse files

REST API: Trigger `_doing_it_wrong()` if `wp_send_json()` is used on a REST API request

In addition to triggering the `_doing_it_wrong()` logging, also adds a `X-WP-DoingItWrong` header.

Fixes #36271.

Props rmccue, TimothyBlynJacobs.


Built from https://develop.svn.wordpress.org/trunk@48361


git-svn-id: https://core.svn.wordpress.org/trunk@48130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 0dd9050f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment