| @@ 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 | } |
|
| @@ 1743-1748 (lines=6) @@ | ||
| 1740 | if ( 'pod' == $pod[ 'type' ] ) |
|
| 1741 | $pod[ 'type' ] = 'post_type'; |
|
| 1742 | ||
| 1743 | if ( 'table' == $pod[ 'storage' ] ) { |
|
| 1744 | if ( 'taxonomy' == $pod[ 'type' ] && ! function_exists( 'get_term_meta' ) ) |
|
| 1745 | $pod[ 'storage' ] = 'none'; |
|
| 1746 | else |
|
| 1747 | $pod[ 'storage' ] = 'meta'; |
|
| 1748 | } |
|
| 1749 | } |
|
| 1750 | ||
| 1751 | $pod[ 'options' ][ 'type' ] = $pod[ 'type' ]; |
|
| @@ 5695-5697 (lines=3) @@ | ||
| 5692 | $pod = array_merge( $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ), $pod ); |
|
| 5693 | ||
| 5694 | // Override old 'none' storage type |
|
| 5695 | if ( 'taxonomy' == $pod['type'] && 'none' == $pod['storage'] && function_exists( 'get_term_meta' ) ) { |
|
| 5696 | $pod[ 'storage' ] = 'meta'; |
|
| 5697 | } |
|
| 5698 | ||
| 5699 | if ( isset( $pod[ 'pod' ] ) ) |
|
| 5700 | unset( $pod[ 'pod' ] ); |
|