|
@@ 2469-2470 (lines=2) @@
|
| 2466 |
|
if ( $table_operation && 'author' == $field[ 'name' ] && 'pick' != $field[ 'type' ] && ( !defined( 'PODS_FIELD_STRICT' ) || PODS_FIELD_STRICT ) ) |
| 2467 |
|
return pods_error( sprintf( __( '%s is reserved for internal Pods usage, please try a different name', 'pods' ), $field[ 'name' ] ), $this ); |
| 2468 |
|
|
| 2469 |
|
if ( in_array( $field[ 'name' ], array( 'id', 'ID' ) ) ) |
| 2470 |
|
return pods_error( sprintf( __( '%s is reserved for internal Pods usage, please try a different name', 'pods' ), $field[ 'name' ] ), $this ); |
| 2471 |
|
|
| 2472 |
|
foreach ( $object_fields as $object_field => $object_field_opt ) { |
| 2473 |
|
if ( $object_field == $field[ 'name' ] || in_array( $field[ 'name' ], $object_field_opt[ 'alias' ] ) ) |
|
@@ 2481-2482 (lines=2) @@
|
| 2478 |
|
$field[ 'name' ] .= '2'; |
| 2479 |
|
|
| 2480 |
|
if ( 'slug' == $field[ 'type' ] && true === $db ) { |
| 2481 |
|
if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy', 'user' ) ) ) |
| 2482 |
|
return pods_error( __( 'This pod already has an internal WordPress permalink field', 'pods' ), $this ); |
| 2483 |
|
|
| 2484 |
|
$slug_field = get_posts( array( |
| 2485 |
|
'post_type' => '_pods_field', |