@@ 452-453 (lines=2) @@ | ||
449 | return $data; |
|
450 | } |
|
451 | ||
452 | if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod_data ) || self::$current_pod_data[ 'name' ] != $pod ) |
|
453 | self::$current_pod_data = pods_api()->load_pod( array( 'name' => $pod ), false ); |
|
454 | ||
455 | $pod = self::$current_pod_data; |
|
456 | ||
@@ 513-514 (lines=2) @@ | ||
510 | $object = $storage_model->taxonomy; |
|
511 | } |
|
512 | ||
513 | if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod_data ) || self::$current_pod_data[ 'name' ] != $object ) |
|
514 | self::$current_pod_data = pods_api()->load_pod( array( 'name' => $object ), false ); |
|
515 | ||
516 | $pod = self::$current_pod_data; |
|
517 | ||
@@ 576-577 (lines=2) @@ | ||
573 | $field = substr( $obj->get_option( 'field' ), 0, 10 ) == "cpachidden" ? str_replace( 'cpachidden', '', $obj->get_option( 'field' ) ) : $obj->get_option( 'field' ); |
|
574 | $field_type = $obj->get_option( 'field_type' ); |
|
575 | ||
576 | if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod_data ) || self::$current_pod_data[ 'name' ] != $object ) |
|
577 | self::$current_pod_data = pods_api()->load_pod( array( 'name' => $object ), false ); |
|
578 | ||
579 | $pod = self::$current_pod_data; |
|
580 | ||
@@ 624-625 (lines=2) @@ | ||
621 | elseif ( 'wp-comments' == $type ) |
|
622 | $object = 'comment'; |
|
623 | ||
624 | if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod_data ) || self::$current_pod_data[ 'name' ] != $object ) |
|
625 | self::$current_pod_data = pods_api()->load_pod( array( 'name' => $object ), false ); |
|
626 | ||
627 | $pod = self::$current_pod_data; |
|
628 | ||
@@ 672-673 (lines=2) @@ | ||
669 | } |
|
670 | ||
671 | if ( !is_array( $pod ) ) { |
|
672 | if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod_data ) || self::$current_pod_data[ 'name' ] != $pod ) |
|
673 | self::$current_pod_data = pods_api()->load_pod( array( 'name' => $pod ), false ); |
|
674 | ||
675 | if ( !empty( self::$current_pod_data ) ) |
|
676 | $pod = self::$current_pod_data; |
|
@@ 836-841 (lines=6) @@ | ||
833 | ||
834 | if ( 'pod' != $type && ! empty( $objects ) && is_array( $objects ) && isset( $objects[ $name ] ) ) { |
|
835 | $pod = $objects[ $name ]; |
|
836 | } else { |
|
837 | if ( empty( self::$current_pod_data ) || ! is_object( self::$current_pod_data ) || self::$current_pod_data['name'] != $name ) { |
|
838 | self::$current_pod_data = pods_api()->load_pod( array( 'name' => $name ), false ); |
|
839 | } |
|
840 | ||
841 | $pod = self::$current_pod_data; |
|
842 | } |
|
843 | ||
844 | if ( empty( $pod ) ) { |
|
@@ 896-897 (lines=2) @@ | ||
893 | if ( ! empty( $object ) && is_array( $object ) && isset( $object[ $name ] ) ) { |
|
894 | $fields = $object[ $name ]['fields']; |
|
895 | } else { |
|
896 | if ( empty( self::$current_pod_data ) || ! is_object( self::$current_pod_data ) || self::$current_pod_data['name'] != $name ) { |
|
897 | self::$current_pod_data = pods_api()->load_pod( array( 'name' => $name ), false ); |
|
898 | } |
|
899 | ||
900 | $pod = self::$current_pod_data; |