Skip to content

Commit 4bd54db

Browse files
authored
Update layout for static file 404 screen (#103982)
1 parent 87f8f63 commit 4bd54db

File tree

1 file changed

+19
-7
lines changed
  • client/dashboard/sites/settings-static-file-404

1 file changed

+19
-7
lines changed

client/dashboard/sites/settings-static-file-404/index.tsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,33 @@ const fields: Field< { setting: string } >[] = [
2222
{
2323
id: 'setting',
2424
label: __( 'Server response' ),
25-
Edit: 'select',
26-
description: __(
27-
'Assets are images, fonts, JavaScript, and CSS files that web browsers request as part of loading a web page. This setting controls how the web server handles requests for missing asset files.'
28-
),
25+
Edit: 'radio',
2926
elements: [
30-
{ value: 'default', label: __( 'Default' ) },
31-
{ value: 'lightweight', label: __( 'Send a lightweight File-Not-Found page' ) },
32-
{ value: 'wordpress', label: __( 'Delegate request to WordPress' ) },
27+
{
28+
value: 'default',
29+
label: __( 'Default' ),
30+
description: __( 'Use the setting that WordPress.com has decided is the best option.' ),
31+
},
32+
{
33+
value: 'lightweight',
34+
label: __( 'Send a lightweight File-Not-Found page' ),
35+
description: __(
36+
'Let the server handle static file 404 requests. This option is more performant than the others because it doesn’t load the WordPress core code when handling nonexistent assets.'
37+
),
38+
},
39+
{
40+
value: 'wordpress',
41+
label: __( 'Delegate request to WordPress' ),
42+
description: __( 'Let WordPress handle static file 404 requests.' ),
43+
},
3344
],
3445
},
3546
];
3647

3748
const form = {
3849
type: 'regular' as const,
3950
fields: [ 'setting' ],
51+
labelPosition: 'none' as const,
4052
};
4153

4254
export default function SiteStaticFile404Settings( { siteSlug }: { siteSlug: string } ) {

0 commit comments

Comments
 (0)