Merge pull request #152 from mainwp/bogdan01-cf-autofix

Apply fixes from CodeFactor
This commit is contained in:
Thang Hoang Van 2020-05-20 17:00:16 +07:00 committed by GitHub
commit dad5f282c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 26 deletions

View file

@ -113,7 +113,6 @@ class MainWP_Child_Install {
}
}
}
}
public function theme_action() {

View file

@ -309,8 +309,9 @@ class MainWP_Custom_Post_Type {
if ( '_product_image_gallery' == $key['meta_key'] ) {
if ( isset( $data['extras']['woocommerce']['product_images'] ) ) {
$ret = $this->upload_postmeta_image( $data['extras']['woocommerce']['product_images'], $meta_value, $check_image_existed );
if ( true !== $ret )
if ( true !== $ret ) {
return $ret;
}
} else {
continue;
}