Make WordPress Core


Ignore:
Timestamp:
10/03/2015 01:56:05 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Merge some strings in wp-admin/upload.php with existing strings with the same meaning.

Props pavelevap.
Fixes #31727.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/upload.php

    r34256 r34797  
    129129            foreach ( (array) $post_ids as $post_id ) {
    130130                if ( !current_user_can( 'delete_post', $post_id ) )
    131                     wp_die( __( 'You are not allowed to move this post to the trash.' ) );
     131                    wp_die( __( 'You are not allowed to move this item to the Trash.' ) );
    132132
    133133                if ( !wp_trash_post( $post_id ) )
     
    141141            foreach ( (array) $post_ids as $post_id ) {
    142142                if ( !current_user_can( 'delete_post', $post_id ) )
    143                     wp_die( __( 'You are not allowed to move this post out of the trash.' ) );
     143                    wp_die( __( 'You are not allowed to move this item out of the Trash.' ) );
    144144
    145145                if ( !wp_untrash_post( $post_id ) )
     
    153153            foreach ( (array) $post_ids as $post_id_del ) {
    154154                if ( !current_user_can( 'delete_post', $post_id_del ) )
    155                     wp_die( __( 'You are not allowed to delete this post.' ) );
     155                    wp_die( __( 'You are not allowed to delete this item.' ) );
    156156
    157157                if ( !wp_delete_attachment( $post_id_del ) )
Note: See TracChangeset for help on using the changeset viewer.