Code Duplication    Length = 5-5 lines in 3 locations

classes/fields/pick.php 1 location

@@ 1286-1290 (lines=5) @@
1283
        $current_language = false;
1284
1285
        // WPML support
1286
        if ( is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
1287
            $current_language = pods_sanitize( ICL_LANGUAGE_CODE );
1288
        // Polylang support
1289
        elseif ( function_exists( 'pll_current_language' ) )
1290
            $current_language = pll_current_language( 'slug' );
1291
1292
        $object_params = array_merge(
1293
            array(

classes/PodsAPI.php 2 locations

@@ 5275-5279 (lines=5) @@
5272
        $load_fields = true;
5273
5274
        // WPML support
5275
        if ( is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5276
            $current_language = pods_sanitize( ICL_LANGUAGE_CODE );
5277
        // Polylang support
5278
        elseif ( function_exists( 'pll_current_language' ) )
5279
            $current_language = pll_current_language( 'slug' );
5280
5281
        if ( !is_array( $params ) && !is_object( $params ) )
5282
            $params = array( 'name' => $params, 'table_info' => false, 'fields' => true );
@@ 5546-5550 (lines=5) @@
5543
        $current_language = false;
5544
5545
        // WPML support
5546
        if ( is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5547
            $current_language = pods_sanitize( ICL_LANGUAGE_CODE );
5548
        // Polylang support
5549
        elseif ( function_exists( 'pll_current_language' ) )
5550
            $current_language = pll_current_language( 'slug' );
5551
5552
        $params = (object) pods_sanitize( $params );
5553