@@ 1529-1530 (lines=2) @@ | ||
1526 | if ( 'post_type' == $pod_params[ 'type' ] ) { |
|
1527 | $check = get_post_type_object( $pod_params[ 'name' ] ); |
|
1528 | ||
1529 | if ( !empty( $check ) ) |
|
1530 | return pods_error( sprintf( __( 'Post Type %s already exists, try extending it instead', 'pods' ), $pod_params[ 'name' ] ), $this ); |
|
1531 | ||
1532 | $pod_params[ 'options' ][ 'supports_title' ] = 1; |
|
1533 | $pod_params[ 'options' ][ 'supports_editor' ] = 1; |
|
@@ 1538-1539 (lines=2) @@ | ||
1535 | elseif ( 'taxonomy' == $pod_params[ 'type' ] ) { |
|
1536 | $check = get_taxonomy( $pod_params[ 'name' ] ); |
|
1537 | ||
1538 | if ( !empty( $check ) ) |
|
1539 | return pods_error( sprintf( __( 'Taxonomy %s already exists, try extending it instead', 'pods' ), $pod_params[ 'name' ] ), $this ); |
|
1540 | } |
|
1541 | } |
|
1542 |