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