Make WordPress Core

Ticket #33133: 33133.patch

File 33133.patch, 1.4 KB (added by pavelevap, 11 years ago)
  • src/wp-admin/post.php

     
    278278                wp_die( __( 'Unknown post type.' ) );
    279279
    280280        if ( ! current_user_can( 'delete_post', $post_id ) )
    281                 wp_die( __( 'You are not allowed to move this item out of the Trash.' ) );
     281                wp_die( __( 'You are not allowed to restore this item from the Trash.' ) );
    282282
    283283        if ( ! wp_untrash_post( $post_id ) )
    284284                wp_die( __( 'Error in restoring from Trash.' ) );
  • src/wp-admin/upload.php

     
    129129                                        wp_die( __( 'You are not allowed to move this post to the trash.' ) );
    130130
    131131                                if ( !wp_trash_post( $post_id ) )
    132                                         wp_die( __( 'Error in moving to trash.' ) );
     132                                        wp_die( __( 'Error in moving to Trash.' ) );
    133133                        }
    134134                        $location = add_query_arg( array( 'trashed' => count( $post_ids ), 'ids' => join( ',', $post_ids ) ), $location );
    135135                        break;
     
    141141                                        wp_die( __( 'You are not allowed to move this post out of the trash.' ) );
    142142
    143143                                if ( !wp_untrash_post( $post_id ) )
    144                                         wp_die( __( 'Error in restoring from trash.' ) );
     144                                        wp_die( __( 'Error in restoring from Trash.' ) );
    145145                        }
    146146                        $location = add_query_arg( 'untrashed', count( $post_ids ), $location );
    147147                        break;