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