|
@@ 7804-7812 (lines=9) @@
|
| 7801 |
|
$info[ 'where' ][ 'wpml_languages' ] = "`wpml_languages`.`code` IS NOT NULL"; |
| 7802 |
|
} |
| 7803 |
|
// Polylang support |
| 7804 |
|
elseif( ( function_exists( 'PLL' ) || is_object( $polylang ) ) && !empty( $current_language ) && function_exists( 'pll_is_translated_post_type' ) && pll_is_translated_post_type( $post_type ) ) { |
| 7805 |
|
$info[ 'join' ][ 'polylang_languages' ] = " |
| 7806 |
|
LEFT JOIN `{$wpdb->term_relationships}` AS `polylang_languages` |
| 7807 |
|
ON `polylang_languages`.`object_id` = `t`.`ID` |
| 7808 |
|
AND `polylang_languages`.`term_taxonomy_id` = {$current_language_tt_id} |
| 7809 |
|
"; |
| 7810 |
|
|
| 7811 |
|
$info[ 'where' ][ 'polylang_languages' ] = "`polylang_languages`.`object_id` IS NOT NULL"; |
| 7812 |
|
} |
| 7813 |
|
|
| 7814 |
|
$info[ 'object_fields' ] = $this->get_wp_object_fields( $object_type, $info[ 'pod' ] ); |
| 7815 |
|
} |
|
@@ 7886-7894 (lines=9) @@
|
| 7883 |
|
$info[ 'where' ][ 'wpml_languages' ] = "`wpml_languages`.`code` IS NOT NULL"; |
| 7884 |
|
} |
| 7885 |
|
// Polylang support |
| 7886 |
|
elseif ( ( function_exists( 'PLL' ) || is_object( $polylang ) ) && !empty( $current_language ) && !empty( $current_language_tl_tt_id ) && function_exists( 'pll_is_translated_taxonomy' ) && pll_is_translated_taxonomy( $taxonomy ) ) { |
| 7887 |
|
$info[ 'join' ][ 'polylang_languages' ] = " |
| 7888 |
|
LEFT JOIN `{$wpdb->term_relationships}` AS `polylang_languages` |
| 7889 |
|
ON `polylang_languages`.`object_id` = `t`.`term_id` |
| 7890 |
|
AND `polylang_languages`.`term_taxonomy_id` = {$current_language_tl_tt_id} |
| 7891 |
|
"; |
| 7892 |
|
|
| 7893 |
|
$info[ 'where' ][ 'polylang_languages' ] = "`polylang_languages`.`object_id` IS NOT NULL"; |
| 7894 |
|
} |
| 7895 |
|
|
| 7896 |
|
$info[ 'object_fields' ] = $this->get_wp_object_fields( $object_type, $info[ 'pod' ] ); |
| 7897 |
|
} |