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

View File

@@ -116,7 +116,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
'force' => array(
'type' => 'boolean',
'default' => false,
'description' => __( 'Whether to bypass trash and force deletion.' ),
'description' => __( 'Whether to bypass Trash and force deletion.' ),
),
),
),
@@ -886,7 +886,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
*
* The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug.
*
* Pass false to disable trash support for the post.
* Pass false to disable Trash support for the post.
*
* @since 4.7.0
*
@@ -937,7 +937,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
}
// (Note that internally this falls through to `wp_delete_post()`
// if the trash is disabled.)
// if the Trash is disabled.)
$result = wp_trash_post( $id );
$post = get_post( $id );
$response = $this->prepare_item_for_response( $post, $request );