wrong property

This commit is contained in:
Mike Jolley 2019-06-17 15:29:11 +01:00
parent ab42dc41b3
commit 31131bf500
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
} }
} }