Perhaps it does not make much sense to filter empty URI if it's REST request or not.

This commit is contained in:
Peter Fabian 2019-02-18 22:52:39 +01:00
parent 42855592e4
commit 989fad5a7e
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ final class WooCommerce {
*/
public function is_rest_api_request() {
if ( empty( $_SERVER['REQUEST_URI'] ) ) {
return apply_filters( 'woocommerce_is_rest_api_request', false );
return false;
}
// REST API prefix.