Perhaps it does not make much sense to filter empty URI if it's REST request or not.
This commit is contained in:
parent
42855592e4
commit
989fad5a7e
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue