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