Ticket #11299: 11299.diff
| File 11299.diff, 5.3 KB (added by , 17 years ago) |
|---|
-
wp-admin/edit-comments.php
154 154 if ( $spammed > 0 ) { 155 155 printf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ); 156 156 $ids = isset($_GET['ids']) ? $_GET['ids'] : 0; 157 echo ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", "bulk-comments" ) ) . '">' . __('Undo ?') . '</a><br />';157 echo ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", "bulk-comments" ) ) . '">' . __('Undo') . '</a><br />'; 158 158 } 159 159 if ( $unspammed > 0 ) { 160 160 printf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed ); … … 163 163 if ( $trashed > 0 ) { 164 164 printf( _n( '%s comment moved to the trash.', '%s comments moved to the trash.', $trashed ), $trashed ); 165 165 $ids = isset($_GET['ids']) ? $_GET['ids'] : 0; 166 echo ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", "bulk-comments" ) ) . '">' . __('Undo ?') . '</a><br />';166 echo ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", "bulk-comments" ) ) . '">' . __('Undo') . '</a><br />'; 167 167 } 168 168 if ( $untrashed > 0 ) { 169 169 printf( _n( '%s comment restored from the trash', '%s comments restored from the trash', $untrashed ), $untrashed ); -
wp-admin/includes/media.php
1233 1233 if ( !EMPTY_TRASH_DAYS ) 1234 1234 $delete = "<a href=\"" . wp_nonce_url("post.php?action=delete&post=$attachment_id", 'delete-post_' . $attachment_id) . "\" id=\"del[$attachment_id]\" class=\"delete\">" . __('Delete Permanently') . "</a>"; 1235 1235 else 1236 $delete = "<a href=\"" . wp_nonce_url("post.php?action=trash&post=$attachment_id", 'trash-post_' . $attachment_id) . "\" id=\"del[$attachment_id]\" class=\"delete\">" . __('Move to Trash') . "</a> <a href=\"" . wp_nonce_url("post.php?action=untrash&post=$attachment_id", 'untrash-post_' . $attachment_id) . "\" id=\"undo[$attachment_id]\" class=\"undo hidden\">" . __('Undo ?') . "</a>";1236 $delete = "<a href=\"" . wp_nonce_url("post.php?action=trash&post=$attachment_id", 'trash-post_' . $attachment_id) . "\" id=\"del[$attachment_id]\" class=\"delete\">" . __('Move to Trash') . "</a> <a href=\"" . wp_nonce_url("post.php?action=untrash&post=$attachment_id", 'untrash-post_' . $attachment_id) . "\" id=\"undo[$attachment_id]\" class=\"undo hidden\">" . __('Undo') . "</a>"; 1237 1237 } else { 1238 1238 $delete = ''; 1239 1239 } -
wp-admin/upload.php
206 206 $messages[1] = __('Media attachment updated.'); 207 207 $messages[2] = __('Media permanently deleted.'); 208 208 $messages[3] = __('Error saving media attachment.'); 209 $messages[4] = __('Media moved to the trash.') . ' <a href="' . esc_url( wp_nonce_url( 'upload.php?doaction=undo&action=untrash&ids='.(isset($_GET['ids']) ? $_GET['ids'] : ''), "bulk-media" ) ) . '">' . __('Undo ?') . '</a>';209 $messages[4] = __('Media moved to the trash.') . ' <a href="' . esc_url( wp_nonce_url( 'upload.php?doaction=undo&action=untrash&ids='.(isset($_GET['ids']) ? $_GET['ids'] : ''), "bulk-media" ) ) . '">' . __('Undo') . '</a>'; 210 210 $messages[5] = __('Media restored from the trash.'); 211 211 212 212 if ( isset($_GET['message']) && (int) $_GET['message'] ) { -
wp-admin/edit.php
168 168 if ( isset($_GET['trashed']) && (int) $_GET['trashed'] ) { 169 169 printf( _n( 'Post moved to the trash.', '%s posts moved to the trash.', $_GET['trashed'] ), number_format_i18n( $_GET['trashed'] ) ); 170 170 $ids = isset($_GET['ids']) ? $_GET['ids'] : 0; 171 echo ' <a href="' . esc_url( wp_nonce_url( "edit.php?doaction=undo&action=untrash&ids=$ids", "bulk-posts" ) ) . '">' . __('Undo ?') . '</a><br />';171 echo ' <a href="' . esc_url( wp_nonce_url( "edit.php?doaction=undo&action=untrash&ids=$ids", "bulk-posts" ) ) . '">' . __('Undo') . '</a><br />'; 172 172 unset($_GET['trashed']); 173 173 } 174 174 -
wp-admin/edit-pages.php
167 167 if ( isset($_GET['trashed']) && (int) $_GET['trashed'] ) { 168 168 printf( _n( 'Page moved to the trash.', '%s pages moved to the trash.', $_GET['trashed'] ), number_format_i18n( $_GET['trashed'] ) ); 169 169 $ids = isset($_GET['ids']) ? $_GET['ids'] : 0; 170 echo ' <a href="' . esc_url( wp_nonce_url( "edit-pages.php?doaction=undo&action=untrash&ids=$ids", "bulk-pages" ) ) . '">' . __('Undo ?') . '</a><br />';170 echo ' <a href="' . esc_url( wp_nonce_url( "edit-pages.php?doaction=undo&action=untrash&ids=$ids", "bulk-pages" ) ) . '">' . __('Undo') . '</a><br />'; 171 171 unset($_GET['trashed']); 172 172 } 173 173 if ( isset($_GET['untrashed']) && (int) $_GET['untrashed'] ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)