Skip to content

Commit 941fb0c

Browse files
committed
feat: rename "Screen Options" to "Display Options"
1 parent 33f476e commit 941fb0c

25 files changed

+54
-54
lines changed

src/js/_enqueues/admin/common.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ window.adminMenu = {
386386
window.columns = {
387387

388388
/**
389-
* Initializes the column toggles in the screen options.
389+
* Initializes the column toggles in the display options.
390390
*
391391
* Binds an onClick event to the checkboxes to show or hide the table columns
392392
* based on their toggled state. And persists the toggled state.
@@ -428,7 +428,7 @@ window.columns = {
428428
page: pagenow
429429
},
430430
function() {
431-
wp.a11y.speak( __( 'Screen Options updated.' ) );
431+
wp.a11y.speak( __( 'Display Options updated.' ) );
432432
}
433433
);
434434
},
@@ -473,7 +473,7 @@ window.columns = {
473473
},
474474

475475
/**
476-
* Gets the checked column toggles from the screen options.
476+
* Gets the checked column toggles from the display options.
477477
*
478478
* @since 3.0.0
479479
*
@@ -565,7 +565,7 @@ window.showNotice = {
565565
};
566566

567567
/**
568-
* Represents the functions for the meta screen options panel.
568+
* Represents the functions for the meta display options panel.
569569
*
570570
* @since 3.2.0
571571
*

src/js/_enqueues/admin/postbox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
/**
293293
* Hides the postbox element
294294
*
295-
* Event handler for the screen options checkboxes. When a checkbox is
295+
* Event handler for the display options checkboxes. When a checkbox is
296296
* clicked this function will hide or show the relevant postboxes.
297297
*
298298
* @since 2.7.0
@@ -471,7 +471,7 @@
471471
page: page
472472
},
473473
function() {
474-
wp.a11y.speak( __( 'Screen Options updated.' ) );
474+
wp.a11y.speak( __( 'Display Options updated.' ) );
475475
}
476476
);
477477
},
@@ -559,7 +559,7 @@
559559
*/
560560
updateEmptySortablesText: function( visibleSortables, areAllVisibleSortablesEmpty ) {
561561
var isDashboard = $( '#dashboard-widgets' ).length,
562-
emptySortableText = areAllVisibleSortablesEmpty ? __( 'Add boxes from the Screen Options menu' ) : __( 'Drag boxes here' );
562+
emptySortableText = areAllVisibleSortablesEmpty ? __( 'Add boxes from the Display Options menu' ) : __( 'Drag boxes here' );
563563

564564
if ( ! isDashboard ) {
565565
return;

src/js/_enqueues/wp/customize/nav-menus.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@
794794
/**
795795
* wp.customize.Menus.MenusPanel
796796
*
797-
* Customizer panel for menus. This is used only for screen options management.
797+
* Customizer panel for menus. This is used only for display options management.
798798
* Note that 'menus' must match the WP_Customize_Menu_Panel::$type.
799799
*
800800
* @class wp.customize.Menus.MenusPanel
@@ -1637,7 +1637,7 @@
16371637
* Shows or hides buttons based on the location of the menu item.
16381638
*
16391639
* @param {Object} itemToRefresh The menu item that might need its advanced accessibility buttons refreshed
1640-
*
1640+
*
16411641
* @since 6.6.0
16421642
*/
16431643
refreshAdvancedAccessibilityOfItem: function( itemToRefresh ) {
@@ -1717,7 +1717,7 @@
17171717
}
17181718
control.renderContent();
17191719
control.deferred.embedded.resolve(); // This triggers control.ready().
1720-
1720+
17211721
// Mark all menu items as unprocessed.
17221722
$( 'button.item-edit' ).data( 'needs_accessibility_refresh', true );
17231723
},
@@ -1796,7 +1796,7 @@
17961796
control.moveRight();
17971797
control.params.depth += 1;
17981798
}
1799-
1799+
18001800
moveBtn.focus(); // Re-focus after the container was moved.
18011801

18021802
// Mark all menu items as unprocessed.

src/js/_enqueues/wp/dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jQuery( function($) {
3535
welcomepanelnonce: $( '#welcomepanelnonce' ).val()
3636
},
3737
function() {
38-
wp.a11y.speak( wp.i18n.__( 'Screen Options updated.' ) );
38+
wp.a11y.speak( wp.i18n.__( 'Display Options updated.' ) );
3939
}
4040
);
4141
};

src/wp-admin/_index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
);
6161

6262
$help = '<p>' . __( 'You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.' ) . '</p>';
63-
$help .= '<p>' . __( '<strong>Screen Options</strong> &mdash; Use the Screen Options tab to choose which Dashboard boxes to show.' ) . '</p>';
63+
$help .= '<p>' . __( '<strong>Display Options</strong> &mdash; Use the Display Options tab to choose which Dashboard boxes to show.' ) . '</p>';
6464
$help .= '<p>' . __( '<strong>Drag and Drop</strong> &mdash; To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.' ) . '</p>';
6565
$help .= '<p>' . __( '<strong>Box Controls</strong> &mdash; Click the title bar of the box to expand or collapse it. Some boxes added by plugins may have configurable content, and will show a &#8220;Configure&#8221; link in the title bar if you hover over it.' ) . '</p>';
6666

src/wp-admin/css/common.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ p.auto-update-status {
17731773
}
17741774

17751775
/*------------------------------------------------------------------------------
1776-
6.1 - Screen Options Tabs
1776+
6.1 - Display Options Tabs
17771777
------------------------------------------------------------------------------*/
17781778

17791779
#screen-options-wrap,
@@ -1793,7 +1793,7 @@ p.auto-update-status {
17931793
margin: 0 20px 0 0;
17941794
}
17951795

1796-
/* screen options and help tabs revert */
1796+
/* display options and help tabs revert */
17971797
#screen-meta {
17981798
display: none;
17991799
margin: 0 20px -1px 0;
@@ -1865,7 +1865,7 @@ p.auto-update-status {
18651865
content: "\f142";
18661866
}
18671867

1868-
/* end screen options and help tabs */
1868+
/* end display options and help tabs */
18691869

18701870
.toggle-arrow {
18711871
background-repeat: no-repeat;

src/wp-admin/css/customize-nav-menus.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
color: #50575e;
238238
}
239239

240-
/* Screen Options */
240+
/* Display Options */
241241
.customize-screen-options-toggle {
242242
background: none;
243243
border: none;

src/wp-admin/css/list-tables.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ div.action-links,
19881988
display: block;
19891989
}
19901990

1991-
/* Comment author hidden via Screen Options */
1991+
/* Comment author hidden via Display Options */
19921992
.fixed .column-author.hidden ~ .column-comment .comment-author {
19931993
display: none;
19941994
}
@@ -2239,7 +2239,7 @@ div.action-links,
22392239
display: table-cell;
22402240
}
22412241

2242-
/* Plugin description hidden via Screen Options */
2242+
/* Plugin description hidden via Display Options */
22432243
#wpbody-content .wp-list-table.plugins .desc.hidden {
22442244
display: none;
22452245
}

src/wp-admin/edit-form-advanced.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
);
273273

274274
if ( 'post' === $post_type ) {
275-
$customize_display = '<p>' . __( 'The title field and the big Post Editing Area are fixed in place, but you can reposition all the other boxes using drag and drop. You can also minimize or expand them by clicking the title bar of each box. Use the Screen Options tab to unhide more boxes (Excerpt, Send Trackbacks, Custom Fields, Discussion, Slug, Author) or to choose a 1- or 2-column layout for this screen.' ) . '</p>';
275+
$customize_display = '<p>' . __( 'The title field and the big Post Editing Area are fixed in place, but you can reposition all the other boxes using drag and drop. You can also minimize or expand them by clicking the title bar of each box. Use the Display Options tab to unhide more boxes (Excerpt, Send Trackbacks, Custom Fields, Discussion, Slug, Author) or to choose a 1- or 2-column layout for this screen.' ) . '</p>';
276276

277277
get_current_screen()->add_help_tab(
278278
array(
@@ -287,7 +287,7 @@
287287
$title_and_editor .= '<p>' . __( 'Visual mode gives you an editor that is similar to a word processor. Click the Toolbar Toggle button to get a second row of controls.' ) . '</p>';
288288
$title_and_editor .= '<p>' . __( 'The Code mode allows you to enter HTML along with your post text. Note that &lt;p&gt; and &lt;br&gt; tags are converted to line breaks when switching to the Code editor to make it less cluttered. When you type, a single line break can be used instead of typing &lt;br&gt;, and two line breaks instead of paragraph tags. The line breaks are converted back to tags automatically.' ) . '</p>';
289289
$title_and_editor .= '<p>' . __( 'You can insert media files by clicking the button above the post editor and following the directions. You can align or edit images using the inline formatting toolbar available in Visual mode.' ) . '</p>';
290-
$title_and_editor .= '<p>' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Screen Options.' ) . '</p>';
290+
$title_and_editor .= '<p>' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Display Options.' ) . '</p>';
291291
$title_and_editor .= '<p>' . sprintf(
292292
/* translators: %s: Alt + F10 */
293293
__( 'Keyboard users: When you are working in the visual editor, you can use %s to access the toolbar.' ),
@@ -314,7 +314,7 @@
314314
);
315315
} elseif ( 'page' === $post_type ) {
316316
$about_pages = '<p>' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.' ) . '</p>' .
317-
'<p>' . __( 'Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Code modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box.' ) . '</p>';
317+
'<p>' . __( 'Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Display Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Code modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box.' ) . '</p>';
318318

319319
get_current_screen()->add_help_tab(
320320
array(

src/wp-admin/edit-link-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
'title' => __( 'Overview' ),
6767
'content' =>
6868
'<p>' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link&#8217;s web address and name (the text you want to display on your site as the link) are required fields.' ) . '</p>' .
69-
'<p>' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you do not use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>' .
69+
'<p>' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you do not use in the Display Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>' .
7070
'<p>' . __( 'XFN stands for <a href="https://gmpg.org/xfn/">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '</p>',
7171
)
7272
);

0 commit comments

Comments
 (0)