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 959c687 commit abbe634Copy full SHA for abbe634
src/welcome/admin.js
@@ -167,9 +167,17 @@ const SEARCH_TREE = [
167
groups: [
168
{
169
id: 'role-manager',
170
- children: [
171
- ...Object.values( editorRoles ),
172
- ],
+ children: ( editorRoles
+ ? Object.values( editorRoles )
+ : [
173
+ __( 'Role Manager', i18n ),
174
+ __( 'Administrator', i18n ),
175
+ __( 'Editor', i18n ),
176
+ __( 'Author', i18n ),
177
+ __( 'Contributor', i18n ),
178
+ __( 'Subscriber', i18n ),
179
+ ]
180
+ ),
181
},
182
],
183
@@ -181,7 +189,17 @@ const SEARCH_TREE = [
189
id: 'custom-fields-settings',
190
children: [
191
__( 'Custom Fields', i18n ),
184
192
+ ...( editorRoles
193
194
195
196
197
198
199
200
201
202
185
203
186
204
187
205
0 commit comments