mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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() ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user