@@ 5446-5455 (lines=10) @@ | ||
5443 | if ( pods_api_cache() ) |
|
5444 | $pod = pods_transient_get( $transient . '_' . $check_pod->post_name ); |
|
5445 | ||
5446 | if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) { |
|
5447 | // @todo Is this needed anymore for WPML? |
|
5448 | if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) |
|
5449 | && did_action( 'wpml_loaded' ) |
|
5450 | && apply_filters( 'wpml_setting', true, 'auto_adjust_ids' ) ) { |
|
5451 | $pod = array_merge( $pod, $this->get_table_info( $pod['type'], $pod['object'], $pod['name'], $pod ) ); |
|
5452 | } |
|
5453 | ||
5454 | return $pod; |
|
5455 | } |
|
5456 | ||
5457 | $_pod = get_object_vars( $check_pod ); |
|
5458 | } |
|
@@ 5506-5514 (lines=9) @@ | ||
5503 | elseif ( ! $bypass_cache & pods_api_cache() ) |
|
5504 | $pod = pods_transient_get( $transient . '_' . $params->name ); |
|
5505 | ||
5506 | if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) { |
|
5507 | if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && did_action( 'wpml_loaded' ) |
|
5508 | && apply_filters( 'wpml_setting', true, 'auto_adjust_ids' ) ) |
|
5509 | $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) ); |
|
5510 | ||
5511 | return $pod; |
|
5512 | } |
|
5513 | } |
|
5514 | ||
5515 | if ( !isset( $params->name ) ) |
|
5516 | $pod = get_post( $dummy = (int) $params->id ); |
|
5517 | else { |
|
@@ 5543-5551 (lines=9) @@ | ||
5540 | if ( ! $bypass_cache || pods_api_cache() ) |
|
5541 | $pod = pods_transient_get( $transient . '_' . $_pod[ 'post_name' ] ); |
|
5542 | ||
5543 | if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) { |
|
5544 | if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) |
|
5545 | && did_action( 'wpml_loaded' ) |
|
5546 | && apply_filters( 'wpml_setting', true, 'auto_adjust_ids' ) ) { |
|
5547 | $pod = array_merge( $pod, $this->get_table_info( $pod['type'], $pod['object'], $pod['name'], $pod ) ); |
|
5548 | } |
|
5549 | ||
5550 | return $pod; |
|
5551 | } |
|
5552 | ||
5553 | $pod = array( |
|
5554 | 'id' => $_pod[ 'ID' ], |