| @@ 1729-1734 (lines=6) @@ | ||
| 1726 | if ( 'pod' == $pod[ 'type' ] ) |
|
| 1727 | $pod[ 'type' ] = 'post_type'; |
|
| 1728 | ||
| 1729 | if ( 'table' == $pod[ 'storage' ] ) { |
|
| 1730 | if ( 'taxonomy' == $pod[ 'type' ] && ! function_exists( 'get_term_meta' ) ) |
|
| 1731 | $pod[ 'storage' ] = 'none'; |
|
| 1732 | else |
|
| 1733 | $pod[ 'storage' ] = 'meta'; |
|
| 1734 | } |
|
| 1735 | } |
|
| 1736 | ||
| 1737 | $pod[ 'options' ][ 'type' ] = $pod[ 'type' ]; |
|
| @@ 5465-5467 (lines=3) @@ | ||
| 5462 | $pod = array_merge( $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ), $pod ); |
|
| 5463 | ||
| 5464 | // Override old 'none' storage type |
|
| 5465 | if ( 'taxonomy' == $pod['type'] && 'none' == $pod['storage'] && function_exists( 'get_term_meta' ) ) { |
|
| 5466 | $pod[ 'storage' ] = 'meta'; |
|
| 5467 | } |
|
| 5468 | ||
| 5469 | if ( isset( $pod[ 'pod' ] ) ) |
|
| 5470 | unset( $pod[ 'pod' ] ); |
|
| @@ 2714-2716 (lines=3) @@ | ||
| 2711 | ); |
|
| 2712 | ||
| 2713 | $pod_data = array_merge( $this->api->get_table_info( $traverse_recurse[ 'pod' ], '' ), $pod_data ); |
|
| 2714 | } elseif ( 'taxonomy' == $pod_data['type'] && 'none' == $pod_data['storage'] && function_exists( 'get_term_meta' ) ) { |
|
| 2715 | $pod_data['storage'] = 'meta'; |
|
| 2716 | } |
|
| 2717 | ||
| 2718 | $traverse_recurse[ 'pod' ] = $pod_data[ 'name' ]; |
|
| 2719 | } |
|