From fecbb60966d8947f321a186b57ddb1bc9c486ff2 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sat, 19 Sep 2009 01:06:17 +0000 Subject: [PATCH] Add "View trash" link to the notice after moving to the trash git-svn-id: http://svn.automattic.com/wordpress/trunk@11952 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 2 +- wp-admin/edit-pages.php | 1 + wp-admin/edit.php | 1 + wp-admin/upload.php | 53 ++++++++++++++++++++++++-------------- 4 files changed, 36 insertions(+), 21 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index f3b95a74bb..de37533d8f 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -129,7 +129,7 @@ if ( isset($_GET['approved']) || isset($_GET['deleted']) || isset($_GET['trashed } if ( $trashed > 0 ) { printf( _n( '%s comment moved to the trash', '%s comments moved to the trash', $trashed ), $trashed ); - echo '
'; + echo ' ' . __('View trash') . '
'; } if ( $untrashed > 0 ) { printf( _n( '%s comment restored from the trash', '%s comments restored from the trash', $untrashed ), $untrashed ); diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index f8a73ea83c..4879c0090e 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -163,6 +163,7 @@ if ( isset($_GET['deleted']) && (int) $_GET['deleted'] ) { } if ( isset($_GET['trashed']) && (int) $_GET['trashed'] ) { printf( _n( 'Page moved to the trash.', '%s pages moved to the trash.', $_GET['trashed'] ), number_format_i18n( $_GET['trashed'] ) ); + echo ' ' . __('View trash') . ' '; unset($_GET['trashed']); } if ( isset($_GET['untrashed']) && (int) $_GET['untrashed'] ) { diff --git a/wp-admin/edit.php b/wp-admin/edit.php index fe40c6d754..a117a90a82 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -167,6 +167,7 @@ if ( isset($_GET['deleted']) && (int) $_GET['deleted'] ) { if ( isset($_GET['trashed']) && (int) $_GET['trashed'] ) { printf( _n( 'Post moved to the trash.', '%s posts moved to the trash.', $_GET['trashed'] ), number_format_i18n( $_GET['trashed'] ) ); + echo ' ' . __('View trash') . ' '; unset($_GET['trashed']); } diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 9462c06ee0..2c52ee90e7 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -165,9 +165,20 @@ if ( isset($_GET['detached']) ) { $is_trash = ( isset($_GET['status']) && $_GET['status'] == 'trash' ); wp_enqueue_script('media'); -require_once('admin-header.php'); ?> +require_once('admin-header.php'); - + +
+ +

' . __('Search results for “%s”') . '', esc_html( get_search_query() ) ); ?> +

+ +' . __('View trash') . ' '; +$messages[5] = __('Media restored from the trash.'); if ( isset($_GET['message']) && (int) $_GET['message'] ) { $message = $messages[$_GET['message']]; $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); } -?> - - -
- -

' . __('Search results for “%s”') . '', esc_html( get_search_query() ) ); ?> -

- - +if ( !empty($message) ) { ?>

- +