Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a
is_string
check to the params iterator (woocommerce#52361)
This works fine: ``` curl -u bor0:asdf -X OPTIONS "localhost:8080/wp-json/wc/store/v1/products?_unstable_tax_asdf_operator=1" | jq ``` However, this causes a fatal error `PHP Fatal error: Uncaught TypeError: str_starts_with(): Argument #1 ($haystack) must be of type string, int given`: ``` curl -u bor0:asdf -X OPTIONS "localhost:8080/wp-json/wc/store/v1/products?1=2" | jq ```
- Loading branch information