-if ( 'inline' == $style ) : ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
-<head>
-<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
-<title><?php bloginfo('name') ?> › <?php _e('Uploads'); ?> — WordPress</title>
-<?php wp_admin_css(); ?>
-<script type="text/javascript">
-//<![CDATA[
-function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}
-//]]>
-</script>
-<?php do_action('admin_print_scripts'); wp_upload_admin_head(); ?>
-</head>
-<body>
-<?php
-else :
- add_action( 'admin_head', 'wp_upload_admin_head' );
- include_once('admin-header.php');
-?>
- <div class='wrap'>
- <h2><?php _e('Uploads'); ?></h2>
-<?php
-endif;
-
-echo "<ul id='upload-menu'>\n";
-foreach ( $wp_upload_tabs as $t => $tab_array ) { // We've already done the current_user_can check
- $href = add_query_arg( array('tab' => $t, 'ID' => '', 'action' => '', 'paged' => '') );
- if ( isset($tab_array[4]) && is_array($tab_array[4]) )
- $href = add_query_arg( $tab_array[4], $href );
- $_href = clean_url( $href);
- $page_links = '';
- $class = 'upload-tab alignleft';
- if ( $tab == $t ) {
- $class .= ' current';
- if ( $tab_array[3] ) {
- if ( is_array($tab_array[3]) ) {
- $total = $tab_array[3][0];
- $per = $tab_array[3][1];
- } else {
- $total = $tab_array[3];
- $per = 10;
- }
- $page_links = paginate_links( array(
- 'base' => add_query_arg( 'paged', '%#%' ),
- 'format' => '',
- 'total' => ceil($total / $per),
- 'current' => $paged ? $paged : 1,
- 'prev_text' => '«',
- 'next_text' => '»'
- ));
- if ( $page_links )
- $page_links = "<span id='current-tab-nav'>: $page_links</span>";
- }
- }
+if ( ! empty( $_GET['untrashed'] ) && $untrashed = absint( $_GET['untrashed'] ) ) {
+ $message = sprintf( _n( 'Media attachment restored from the trash.', '%d media attachments restored from the trash.', $untrashed ), number_format_i18n( $_GET['untrashed'] ) );
+ $_SERVER['REQUEST_URI'] = remove_query_arg(array('untrashed'), $_SERVER['REQUEST_URI']);
+}
+
+$messages[1] = __('Media attachment updated.');
+$messages[2] = __('Media permanently deleted.');
+$messages[3] = __('Error saving media attachment.');
+$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>';
+$messages[5] = __('Media restored from the trash.');