WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/10/2020 04:10:09 AM (13 months 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-admin/includes/ajax-actions.php

    r47219 r47233  
    717717        $r = wp_untrash_comment( $comment );
    718718
    719         // Undo trash, not in trash.
     719        // Undo trash, not in Trash.
    720720        if ( ! isset( $_POST['comment_status'] ) || 'trash' !== $_POST['comment_status'] ) {
    721721            $delta = 1;
     
    862862
    863863/**
    864  * Ajax handler for sending a post to the trash.
     864 * Ajax handler for sending a post to the Trash.
    865865 *
    866866 * @since 3.1.0
     
    898898
    899899/**
    900  * Ajax handler to restore a post from the trash.
     900 * Ajax handler to restore a post from the Trash.
    901901 *
    902902 * @since 3.1.0
Note: See TracChangeset for help on using the changeset viewer.