Make WordPress Core


Ignore:
Timestamp:
02/10/2020 04:10:09 AM (6 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r47122 r47233  
    117117                                                        'type'        => 'boolean',
    118118                                                        'default'     => false,
    119                                                         'description' => __( 'Whether to bypass trash and force deletion.' ),
     119                                                        'description' => __( 'Whether to bypass Trash and force deletion.' ),
    120120                                                ),
    121121                                        ),
     
    887887                 * The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug.
    888888                 *
    889                  * Pass false to disable trash support for the post.
     889                 * Pass false to disable Trash support for the post.
    890890                 *
    891891                 * @since 4.7.0
     
    938938
    939939                        // (Note that internally this falls through to `wp_delete_post()`
    940                         // if the trash is disabled.)
     940                        // if the Trash is disabled.)
    941941                        $result   = wp_trash_post( $id );
    942942                        $post     = get_post( $id );
Note: See TracChangeset for help on using the changeset viewer.