|
@@ 1790-1791 (lines=2) @@
|
| 1787 |
|
if ( 'post_type' == $pod[ 'type' ] ) { |
| 1788 |
|
$check = get_post_type_object( $params->name ); |
| 1789 |
|
|
| 1790 |
|
if ( !empty( $check ) ) |
| 1791 |
|
return pods_error( sprintf( __( 'Post Type %s already exists, you cannot rename %s to that', 'pods' ), $params->name, $old_name ), $this ); |
| 1792 |
|
} |
| 1793 |
|
elseif ( 'taxonomy' == $pod[ 'type' ] ) { |
| 1794 |
|
$check = get_taxonomy( $params->name ); |
|
@@ 1796-1797 (lines=2) @@
|
| 1793 |
|
elseif ( 'taxonomy' == $pod[ 'type' ] ) { |
| 1794 |
|
$check = get_taxonomy( $params->name ); |
| 1795 |
|
|
| 1796 |
|
if ( !empty( $check ) ) |
| 1797 |
|
return pods_error( sprintf( __( 'Taxonomy %s already exists, you cannot rename %s to that', 'pods' ), $params->name, $old_name ), $this ); |
| 1798 |
|
} |
| 1799 |
|
} |
| 1800 |
|
|