@@ 634-644 (lines=11) @@ | ||
631 | $_taxonomies = array_merge_recursive( $_taxonomies, $pods_taxonomies ); |
|
632 | $ignore = array( 'nav_menu', 'link_category', 'post_format' ); |
|
633 | ||
634 | foreach ( $_taxonomies as $taxonomy => $label ) { |
|
635 | if ( in_array( $taxonomy, $ignore ) ) { |
|
636 | continue; |
|
637 | } |
|
638 | ||
639 | if ( false !== (boolean) pods_var( 'built_in_taxonomies_' . $taxonomy, $post_type, false ) ) { |
|
640 | $cpt_taxonomies[] = $taxonomy; |
|
641 | ||
642 | if ( isset( $supported_post_types[ $taxonomy ] ) && ! in_array( $post_type_name, $supported_post_types[ $taxonomy ] ) ) { |
|
643 | $supported_post_types[ $taxonomy ][] = $post_type_name; |
|
644 | } |
|
645 | } |
|
646 | } |
|
647 | ||
@@ 770-780 (lines=11) @@ | ||
767 | $_post_types = array_merge_recursive( $_post_types, $pods_post_types ); |
|
768 | $ignore = array( 'revision' ); |
|
769 | ||
770 | foreach ( $_post_types as $post_type => $options ) { |
|
771 | if ( in_array( $post_type, $ignore ) ) { |
|
772 | continue; |
|
773 | } |
|
774 | ||
775 | if ( false !== (boolean) pods_var( 'built_in_post_types_' . $post_type, $taxonomy, false ) ) { |
|
776 | $ct_post_types[] = $post_type; |
|
777 | ||
778 | if ( isset( $supported_taxonomies[ $post_type ] ) && ! in_array( $taxonomy_name, $supported_taxonomies[ $post_type ] ) ) { |
|
779 | $supported_taxonomies[ $post_type ][] = $taxonomy_name; |
|
780 | } |
|
781 | } |
|
782 | } |
|
783 |