Skip to content

Commit 1e060c2

Browse files
committed
Revert "Revert "- update TypeRegistry to bail early if a setting group was not registered.""
This reverts commit 3caf65b.
1 parent 3caf65b commit 1e060c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Registry/TypeRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ public function init_type_registry( TypeRegistry $type_registry ) {
485485
$group_name = DataSource::format_group_name( $group_name );
486486
$type_name = SettingGroup::register_settings_group( $group_name, $group_name, $this );
487487

488-
if ( ! $type_name || ! $this->get_type( $type_name ) ) {
488+
if ( ! $type_name ) {
489489
continue;
490490
}
491491

src/Type/ObjectType/SettingGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function register_settings_group( string $group_name, string $grou
3030
return null;
3131
}
3232

33-
$type_registry->register_object_type(
33+
register_graphql_object_type(
3434
ucfirst( $group_name ) . 'Settings',
3535
[
3636
'description' => sprintf( __( 'The %s setting type', 'wp-graphql' ), $group_name ),

0 commit comments

Comments
 (0)