Update includes/class-wc-install.php
This commit is contained in:
parent
639623edb2
commit
c9db54c784
|
@ -1332,6 +1332,7 @@ CREATE TABLE {$wpdb->prefix}wc_reserved_stock (
|
|||
'post_content' => '',
|
||||
'post_status' => 'inherit',
|
||||
);
|
||||
|
||||
$attach_id = wp_insert_attachment( $attachment, $filename );
|
||||
if ( is_wp_error( $attach_id ) ) {
|
||||
update_option( 'woocommerce_placeholder_image', 0 );
|
||||
|
|
Loading…
Reference in New Issue