We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57aa761 commit 4afe14bCopy full SHA for 4afe14b
src/welcome/admin.js
@@ -167,17 +167,7 @@ const SEARCH_TREE = [
167
groups: [
168
{
169
id: 'role-manager',
170
- children: ( editorRoles
171
- ? Object.values( editorRoles )
172
- : [
173
- __( 'Role Manager', i18n ),
174
- __( 'Administrator', i18n ),
175
- __( 'Editor', i18n ),
176
- __( 'Author', i18n ),
177
- __( 'Contributor', i18n ),
178
- __( 'Subscriber', i18n ),
179
- ]
180
- ),
+ children: Object.values( editorRoles || {} ),
181
},
182
],
183
@@ -189,17 +179,7 @@ const SEARCH_TREE = [
189
id: 'custom-fields-settings',
190
children: [
191
__( 'Custom Fields', i18n ),
192
- ...( editorRoles
193
194
195
196
197
198
199
200
201
202
+ ...Object.values( editorRoles || {} ),
203
204
184
205
185
0 commit comments