Code Duplication    Length = 7-7 lines in 2 locations

classes/Pods.php 2 locations

@@ 1237-1243 (lines=7) @@
1234
							$metadata_type = 'post';
1235
1236
							// Support for WPML 'duplicated' translation handling.
1237
							if ( did_action( 'wpml_loaded' ) && apply_filters( 'wpml_is_translated_post_type', false, $this->pod_data['name'] ) ) {
1238
								$master_post_id = (int) apply_filters( 'wpml_master_post_from_duplicate', $id );
1239
1240
								if ( 0 < $master_post_id ) {
1241
									$id = $master_post_id;
1242
								}
1243
							}
1244
						} elseif ( 'taxonomy' === $this->pod_data['type'] ) {
1245
							$metadata_type = 'term';
1246
						}
@@ 1791-1797 (lines=7) @@
1788
1789
											if ( 'post' === $object_type ) {
1790
												// Support for WPML 'duplicated' translation handling.
1791
												if ( did_action( 'wpml_loaded' ) && apply_filters( 'wpml_is_translated_post_type', false, $object ) ) {
1792
													$master_post_id = (int) apply_filters( 'wpml_master_post_from_duplicate', $metadata_object_id );
1793
1794
													if ( 0 < $master_post_id ) {
1795
														$metadata_object_id = $master_post_id;
1796
													}
1797
												}
1798
											} elseif ( 'taxonomy' === $object_type ) {
1799
												$metadata_type = 'term';
1800
											}