core/Field/Group_Field.php 1 location
|
@@ 266-272 (lines=7) @@
|
263 |
|
* |
264 |
|
* @param string $name |
265 |
|
*/ |
266 |
|
public function verify_unique_field_name( $name ) { |
267 |
|
if ( in_array( $name, $this->registered_field_names ) ) { |
268 |
|
Incorrect_Syntax_Exception::raise( 'Field name "' . $name . '" already registered' ); |
269 |
|
} |
270 |
|
|
271 |
|
$this->registered_field_names[] = $name; |
272 |
|
} |
273 |
|
} |
274 |
|
|
core/Container/Container.php 1 location
|
@@ 650-656 (lines=7) @@
|
647 |
|
* |
648 |
|
* @param string $name |
649 |
|
**/ |
650 |
|
public function verify_unique_field_name( $name ) { |
651 |
|
if ( in_array( $name, $this->registered_field_names ) ) { |
652 |
|
Incorrect_Syntax_Exception::raise( 'Field name "' . $name . '" already registered' ); |
653 |
|
} |
654 |
|
|
655 |
|
$this->registered_field_names[] = $name; |
656 |
|
} |
657 |
|
|
658 |
|
/** |
659 |
|
* Remove field name $name from the list of unique field names |