Make WordPress Core

Changeset 33431


Ignore:
Timestamp:
07/26/2015 10:47:05 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Merge duplicate strings related to Trash.

props pavelevap.
fixes #33133.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r33357 r33431  
    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 ) )
  • trunk/src/wp-admin/upload.php

    r33067 r33431  
    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 );
     
    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 );
Note: See TracChangeset for help on using the changeset viewer.