|
@@ 1251-1257 (lines=7) @@
|
| 1248 |
|
$metadata_type = 'post'; |
| 1249 |
|
|
| 1250 |
|
// Support for WPML 'duplicated' translation handling. |
| 1251 |
|
if ( did_action( 'wpml_loaded' ) && apply_filters( 'wpml_is_translated_post_type', false, $this->pod_data['name'] ) ) { |
| 1252 |
|
$master_post_id = (int) apply_filters( 'wpml_master_post_from_duplicate', $id ); |
| 1253 |
|
|
| 1254 |
|
if ( 0 < $master_post_id ) { |
| 1255 |
|
$id = $master_post_id; |
| 1256 |
|
} |
| 1257 |
|
} |
| 1258 |
|
} elseif ( 'taxonomy' === $this->pod_data['type'] ) { |
| 1259 |
|
$metadata_type = 'term'; |
| 1260 |
|
} |
|
@@ 1805-1811 (lines=7) @@
|
| 1802 |
|
|
| 1803 |
|
if ( 'post' === $object_type ) { |
| 1804 |
|
// Support for WPML 'duplicated' translation handling. |
| 1805 |
|
if ( did_action( 'wpml_loaded' ) && apply_filters( 'wpml_is_translated_post_type', false, $object ) ) { |
| 1806 |
|
$master_post_id = (int) apply_filters( 'wpml_master_post_from_duplicate', $metadata_object_id ); |
| 1807 |
|
|
| 1808 |
|
if ( 0 < $master_post_id ) { |
| 1809 |
|
$metadata_object_id = $master_post_id; |
| 1810 |
|
} |
| 1811 |
|
} |
| 1812 |
|
} elseif ( 'taxonomy' === $object_type ) { |
| 1813 |
|
$metadata_type = 'term'; |
| 1814 |
|
} |