mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 11:10:43 +08:00
Merge pull request #152 from mainwp/bogdan01-cf-autofix
Apply fixes from CodeFactor
This commit is contained in:
commit
dad5f282c9
4 changed files with 26 additions and 26 deletions
|
@ -113,7 +113,6 @@ class MainWP_Child_Install {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function theme_action() {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue