This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Expected null or Object but is Array on StoreAPI Product Categories #9908
Labels
focus: rest api
Work impacting REST api routes.
type: bug
The issue/PR concerns a confirmed bug.
type: community contribution
Describe the bug
The return image of product categories should be null or object, but on some categories, it is an empty array.
The same issues happened on the image of
/wp-json/wc/store/products/categories
request.To reproduce
Steps to reproduce the behavior:
Expected behavior
Expected the image to be null or object.
Environment
WordPress
Core version: 6.2.2
WooCommerce version: 7.8.0
The text was updated successfully, but these errors were encountered: