Skip to content

Commit f9faf3d

Browse files
committed
make sure new record type keys don't have spaces
1 parent b4edf23 commit f9faf3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dt-core/admin/admin-settings-endpoints.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public static function create_new_post_type( WP_REST_Request $request ){
379379
$params = $request->get_params();
380380
$response = [];
381381
if ( isset( $params['key'], $params['single'], $params['plural'] ) ){
382-
$key = $params['key'];
382+
$key = dt_create_field_key( $params['key'] );
383383
$single = $params['single'];
384384
$plural = $params['plural'];
385385

0 commit comments

Comments
 (0)