This commit is contained in:
Csaba Maulis 2023-04-20 16:38:00 +08:00
parent 48d8bec2e3
commit 53276e786d
No known key found for this signature in database
GPG Key ID: 078894AC01BC6E63
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ class WC_REST_Products_Controller extends WC_REST_Products_V2_Controller {
}
// Handle multiple featured images.
if ($featured_image_count > 1) {
if ( $featured_image_count > 1 ) {
throw new WC_REST_Exception(
'woocommerce_rest_product_featured_image_count',
__( 'Only one featured image is allowed.', 'woocommerce' ),