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