| @@ 2709-2711 (lines=3) @@ | ||
| 2706 | ); |
|
| 2707 | ||
| 2708 | $pod_data = array_merge( $this->api->get_table_info( $traverse_recurse[ 'pod' ], '' ), $pod_data ); |
|
| 2709 | } elseif ( 'taxonomy' == $pod_data['type'] && 'none' == $pod_data['storage'] && function_exists( 'get_term_meta' ) ) { |
|
| 2710 | $pod_data['storage'] = 'meta'; |
|
| 2711 | } |
|
| 2712 | ||
| 2713 | $traverse_recurse[ 'pod' ] = $pod_data[ 'name' ]; |
|
| 2714 | } |
|
| @@ 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' ]; |
|
| @@ 5455-5457 (lines=3) @@ | ||
| 5452 | $pod = array_merge( $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ), $pod ); |
|
| 5453 | ||
| 5454 | // Override old 'none' storage type |
|
| 5455 | if ( 'taxonomy' == $pod['type'] && 'none' == $pod['storage'] && function_exists( 'get_term_meta' ) ) { |
|
| 5456 | $pod[ 'storage' ] = 'meta'; |
|
| 5457 | } |
|
| 5458 | ||
| 5459 | if ( isset( $pod[ 'pod' ] ) ) |
|
| 5460 | unset( $pod[ 'pod' ] ); |
|