wrong property
This commit is contained in:
parent
ab42dc41b3
commit
31131bf500
|
@ -58,7 +58,7 @@ class ImageAttachment {
|
||||||
|
|
||||||
if ( ! wp_attachment_is_image( $this->id ) ) {
|
if ( ! wp_attachment_is_image( $this->id ) ) {
|
||||||
/* translators: %s: image ID */
|
/* translators: %s: image ID */
|
||||||
throw new \WC_REST_Exception( 'woocommerce_product_invalid_image_id', sprintf( __( '#%s is an invalid image ID.', 'woocommerce' ), $this->attachment_id ), 400 );
|
throw new \WC_REST_Exception( 'woocommerce_product_invalid_image_id', sprintf( __( '#%s is an invalid image ID.', 'woocommerce' ), $this->id ), 400 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue