|
@@ 464-469 (lines=6) @@
|
| 461 |
|
$post_format_post_types = array(); |
| 462 |
|
|
| 463 |
|
foreach ( $post_types as $post_type ) { |
| 464 |
|
if ( isset( $pods_cpt_ct['post_types'][ $post_type['name'] ] ) ) { |
| 465 |
|
// Post type was setup already |
| 466 |
|
continue; |
| 467 |
|
} elseif ( ! empty( $post_type['object'] ) && isset( $existing_post_types[ $post_type['object'] ] ) ) { |
| 468 |
|
// Post type exists already |
| 469 |
|
|
| 470 |
|
continue; |
| 471 |
|
} elseif ( ! $force && isset( $existing_post_types[ $post_type['name'] ] ) ) { |
| 472 |
|
// Post type was setup and exists already, but we aren't forcing it to be setup again |
|
@@ 697-702 (lines=6) @@
|
| 694 |
|
} |
| 695 |
|
|
| 696 |
|
foreach ( $taxonomies as $taxonomy ) { |
| 697 |
|
if ( isset( $pods_cpt_ct['taxonomies'][ $taxonomy['name'] ] ) ) { |
| 698 |
|
// Taxonomy was setup already |
| 699 |
|
continue; |
| 700 |
|
} elseif ( ! empty( $taxonomy['object'] ) && isset( $existing_taxonomies[ $taxonomy['object'] ] ) ) { |
| 701 |
|
// Taxonomy exists already |
| 702 |
|
|
| 703 |
|
continue; |
| 704 |
|
} elseif ( ! $force && isset( $existing_taxonomies[ $taxonomy['name'] ] ) ) { |
| 705 |
|
// Taxonomy was setup and exists already, but we aren't forcing it to be setup again |