Load: Disable PHP errors for JSON requests
Because WP REST API requests aren't identified until `parse_request`, it's impractical to reference the `REST_REQUEST` constant in `wp_debug_mode()`. Instead, it's more helpful to assume that a request wanting a JSON response probably doesn't want PHP errors breaking the response. Merges [43730] to trunk. Props chrisl27, duanestorey, earnjam. Fixes #44534. Built from https://develop.svn.wordpress.org/trunk@43983 git-svn-id: https://core.svn.wordpress.org/trunk@43815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Loading
Please register or sign in to comment