Make WordPress Core


Ignore:
Timestamp:
04/20/2010 02:54:36 PM (15 years ago)
Author:
nbachiyski
Message:

Trash should always be in titlecase for consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r14139 r14167  
    219219
    220220    if ( !current_user_can($post_type_object->delete_cap, $post_id) )
    221         wp_die( __('You are not allowed to move this item to the trash.') );
     221        wp_die( __('You are not allowed to move this item to the Trash.') );
    222222
    223223    if ( ! wp_trash_post($post_id) )
    224         wp_die( __('Error in moving to trash...') );
     224        wp_die( __('Error in moving to Trash.') );
    225225
    226226    wp_redirect( add_query_arg( array('trashed' => 1, 'ids' => $post_id), $sendback ) );
     
    232232
    233233    if ( !current_user_can($post_type_object->delete_cap, $post_id) )
    234         wp_die( __('You are not allowed to move this item out of the trash.') );
     234        wp_die( __('You are not allowed to move this item out of the Trash.') );
    235235
    236236    if ( ! wp_untrash_post($post_id) )
    237         wp_die( __('Error in restoring from trash...') );
     237        wp_die( __('Error in restoring from Trash.') );
    238238
    239239    wp_redirect( add_query_arg('untrashed', 1, $sendback) );
     
    251251        $force = ( $force || !MEDIA_TRASH );
    252252        if ( ! wp_delete_attachment($post_id, $force) )
    253             wp_die( __('Error in deleting...') );
     253            wp_die( __('Error in deleting.') );
    254254    } else {
    255255        if ( !wp_delete_post($post_id, $force) )
    256             wp_die( __('Error in deleting...') );
     256            wp_die( __('Error in deleting.') );
    257257    }
    258258
Note: See TracChangeset for help on using the changeset viewer.