|
@@ 7746-7754 (lines=9) @@
|
| 7743 |
|
$info[ 'where' ][ 'wpml_languages' ] = "`wpml_languages`.`code` IS NOT NULL"; |
| 7744 |
|
} |
| 7745 |
|
// Polylang support |
| 7746 |
|
elseif( ( function_exists( 'PLL' ) || is_object( $polylang ) ) && !empty( $current_language ) && function_exists( 'pll_is_translated_post_type' ) && pll_is_translated_post_type( $post_type ) ) { |
| 7747 |
|
$info[ 'join' ][ 'polylang_languages' ] = " |
| 7748 |
|
LEFT JOIN `{$wpdb->term_relationships}` AS `polylang_languages` |
| 7749 |
|
ON `polylang_languages`.`object_id` = `t`.`ID` |
| 7750 |
|
AND `polylang_languages`.`term_taxonomy_id` = {$current_language_tt_id} |
| 7751 |
|
"; |
| 7752 |
|
|
| 7753 |
|
$info[ 'where' ][ 'polylang_languages' ] = "`polylang_languages`.`object_id` IS NOT NULL"; |
| 7754 |
|
} |
| 7755 |
|
|
| 7756 |
|
$info[ 'object_fields' ] = $this->get_wp_object_fields( $object_type, $info[ 'pod' ] ); |
| 7757 |
|
} |
|
@@ 7828-7836 (lines=9) @@
|
| 7825 |
|
$info[ 'where' ][ 'wpml_languages' ] = "`wpml_languages`.`code` IS NOT NULL"; |
| 7826 |
|
} |
| 7827 |
|
// Polylang support |
| 7828 |
|
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 ) ) { |
| 7829 |
|
$info[ 'join' ][ 'polylang_languages' ] = " |
| 7830 |
|
LEFT JOIN `{$wpdb->term_relationships}` AS `polylang_languages` |
| 7831 |
|
ON `polylang_languages`.`object_id` = `t`.`term_id` |
| 7832 |
|
AND `polylang_languages`.`term_taxonomy_id` = {$current_language_tl_tt_id} |
| 7833 |
|
"; |
| 7834 |
|
|
| 7835 |
|
$info[ 'where' ][ 'polylang_languages' ] = "`polylang_languages`.`object_id` IS NOT NULL"; |
| 7836 |
|
} |
| 7837 |
|
|
| 7838 |
|
$info[ 'object_fields' ] = $this->get_wp_object_fields( $object_type, $info[ 'pod' ] ); |
| 7839 |
|
} |