Code Duplication    Length = 13-14 lines in 2 locations

classes/class-wetu-importer-tours.php 1 location

@@ 1215-1228 (lines=14) @@
1212
						'cropping' => 'c',
1213
					) );
1214
1215
					if ( false !== $temp_banner ) {
1216
						$this->banner_image = $temp_banner;
1217
1218
						delete_post_meta( $id,'image_group' );
1219
1220
						$new_banner = array(
1221
							'banner_image' => array(
1222
								'cmb-field-0' => $this->banner_image,
1223
							),
1224
						);
1225
						add_post_meta( $id,'image_group',$new_banner,true );
1226
						$image_set = true;
1227
					}
1228
				}
1229
				$counter++;
1230
			}
1231
		}

classes/class-wetu-importer.php 1 location

@@ 922-934 (lines=13) @@
919
				));
920
			}
921
922
			if ( false !== $temp_banner ) {
923
				$this->banner_image = $temp_banner;
924
925
				delete_post_meta( $id,'image_group' );
926
927
				$new_banner = array(
928
					'banner_image' => array(
929
						'cmb-field-0' => $this->banner_image,
930
					),
931
				);
932
933
				add_post_meta( $id,'image_group',$new_banner,true );
934
			}
935
		}
936
	}
937