|
@@ 532-542 (lines=11) @@
|
| 529 |
|
$_taxonomies = array_merge_recursive( $_taxonomies, $pods_taxonomies ); |
| 530 |
|
$ignore = array( 'nav_menu', 'link_category', 'post_format' ); |
| 531 |
|
|
| 532 |
|
foreach ( $_taxonomies as $taxonomy => $label ) { |
| 533 |
|
if ( in_array( $taxonomy, $ignore ) ) |
| 534 |
|
continue; |
| 535 |
|
|
| 536 |
|
if ( false !== (boolean) pods_var( 'built_in_taxonomies_' . $taxonomy, $post_type, false ) ) { |
| 537 |
|
$cpt_taxonomies[] = $taxonomy; |
| 538 |
|
|
| 539 |
|
if ( isset( $supported_post_types[ $taxonomy ] ) && !in_array( $post_type_name, $supported_post_types[ $taxonomy ] ) ) |
| 540 |
|
$supported_post_types[ $taxonomy ][] = $post_type_name; |
| 541 |
|
} |
| 542 |
|
} |
| 543 |
|
|
| 544 |
|
if ( isset( $supported_taxonomies[ $post_type_name ] ) ) |
| 545 |
|
$supported_taxonomies[ $post_type_name ] = array_merge( (array) $supported_taxonomies[ $post_type_name ], $cpt_taxonomies ); |
|
@@ 632-642 (lines=11) @@
|
| 629 |
|
$_post_types = array_merge_recursive( $_post_types, $pods_post_types ); |
| 630 |
|
$ignore = array( 'revision' ); |
| 631 |
|
|
| 632 |
|
foreach ( $_post_types as $post_type => $options ) { |
| 633 |
|
if ( in_array( $post_type, $ignore ) ) |
| 634 |
|
continue; |
| 635 |
|
|
| 636 |
|
if ( false !== (boolean) pods_var( 'built_in_post_types_' . $post_type, $taxonomy, false ) ) { |
| 637 |
|
$ct_post_types[] = $post_type; |
| 638 |
|
|
| 639 |
|
if ( isset( $supported_taxonomies[ $post_type ] ) && !in_array( $taxonomy_name, $supported_taxonomies[ $post_type ] ) ) |
| 640 |
|
$supported_taxonomies[ $post_type ][] = $taxonomy_name; |
| 641 |
|
} |
| 642 |
|
} |
| 643 |
|
|
| 644 |
|
if ( isset( $supported_post_types[ $taxonomy_name ] ) ) |
| 645 |
|
$supported_post_types[ $taxonomy_name ] = array_merge( $supported_post_types[ $taxonomy_name ], $ct_post_types ); |