Administration: Capitalize Trash consistently in various messages and comments.

When used as a noun referring to the "virtual" place, `Trash` should be capitalized.

Props garrett-eclipse, aandrewdixon, Presskopp.
Fixes #45317.

git-svn-id: https://develop.svn.wordpress.org/trunk@47233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-02-10 04:10:09 +00:00
parent 5302cd6514
commit 023d4b2796
24 changed files with 70 additions and 70 deletions
+1 -1
View File
@@ -538,7 +538,7 @@ window.setCommentsList = function() {
// The comment is currently pending.
} else if ( unapproved ) {
pendingDiff = -1;
// The comment was in the trash.
// The comment was in the Trash.
} else if ( trashed ) {
trashDiff = -1;
}
+1 -1
View File
@@ -1864,7 +1864,7 @@
removedControl.container.remove();
}
// Move widget to inactive widgets sidebar (move it to trash) if has been previously saved.
// Move widget to inactive widgets sidebar (move it to Trash) if has been previously saved.
// This prevents the inactive widgets sidebar from overflowing with throwaway widgets.
if ( api.Widgets.savedWidgetIds[removedWidgetId] ) {
inactiveWidgets = api.value( 'sidebars_widgets[wp_inactive_widgets]' )().slice();
+2 -2
View File
@@ -120,7 +120,7 @@ Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototyp
},
/**
* Sets the trash state on an attachment, or destroys the model itself.
* Sets the Trash state on an attachment, or destroys the model itself.
*
* If the mediaTrash setting is set to true, trashes the attachment.
* Otherwise, the model itself is destroyed.
@@ -138,7 +138,7 @@ Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototyp
this.getFocusableElements();
// When in the Media Library and the Media trash is enabled.
// When in the Media Library and the Media Trash is enabled.
if ( wp.media.view.settings.mediaTrash &&
'edit-metadata' === this.controller.content.mode() ) {