| @@ 2710-2712 (lines=3) @@ | ||
| 2707 | ); |
|
| 2708 | ||
| 2709 | $pod_data = array_merge( $this->api->get_table_info( $traverse_recurse[ 'pod' ], '' ), $pod_data ); |
|
| 2710 | } elseif ( 'taxonomy' == $pod_data['type'] && 'none' == $pod_data['storage'] && function_exists( 'get_term_meta' ) ) { |
|
| 2711 | $pod_data['storage'] = 'meta'; |
|
| 2712 | } |
|
| 2713 | ||
| 2714 | $traverse_recurse[ 'pod' ] = $pod_data[ 'name' ]; |
|
| 2715 | } |
|
| @@ 1731-1736 (lines=6) @@ | ||
| 1728 | if ( 'pod' == $pod[ 'type' ] ) |
|
| 1729 | $pod[ 'type' ] = 'post_type'; |
|
| 1730 | ||
| 1731 | if ( 'table' == $pod[ 'storage' ] ) { |
|
| 1732 | if ( 'taxonomy' == $pod[ 'type' ] && ! function_exists( 'get_term_meta' ) ) |
|
| 1733 | $pod[ 'storage' ] = 'none'; |
|
| 1734 | else |
|
| 1735 | $pod[ 'storage' ] = 'meta'; |
|
| 1736 | } |
|
| 1737 | } |
|
| 1738 | ||
| 1739 | $pod[ 'options' ][ 'type' ] = $pod[ 'type' ]; |
|
| @@ 5615-5617 (lines=3) @@ | ||
| 5612 | $pod = array_merge( $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ), $pod ); |
|
| 5613 | ||
| 5614 | // Override old 'none' storage type |
|
| 5615 | if ( 'taxonomy' == $pod['type'] && 'none' == $pod['storage'] && function_exists( 'get_term_meta' ) ) { |
|
| 5616 | $pod[ 'storage' ] = 'meta'; |
|
| 5617 | } |
|
| 5618 | ||
| 5619 | if ( isset( $pod[ 'pod' ] ) ) |
|
| 5620 | unset( $pod[ 'pod' ] ); |
|