Skip to content

Commit 35a04e8

Browse files
committed
wip
1 parent f433f09 commit 35a04e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function registerPostTypes($postTypes): void
2222

2323
$name = Str::title(str_replace('-', ' ', $slug));
2424
$type->name = $data['name'] ?? $name;
25-
$type->singular_name = $data['name_singular'] ?? Str::singular($name);
25+
$type->singular_name = $data['name_singular'] ?? Str::singular($data['name'] ?? $name);
2626
if (config('cms.should_translate')) $type->lang = Languages::default();
2727

2828
$type->slug = $slug;

0 commit comments

Comments
 (0)