mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user