Changes in trunk/wp-admin/upload.php [17345:17900]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r17345 r17900 131 131 $wp_list_table->prepare_items(); 132 132 133 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );134 if ( $pagenum > $total_pages && $total_pages > 0 ) {135 wp_redirect( add_query_arg( 'paged', $total_pages ) );136 exit;137 }138 139 133 $title = __('Media Library'); 140 134 $parent_file = 'upload.php'; … … 152 146 '<p>' . __( 'If a media file has not been attached to any post, you will see that in the <em>Attached To</em> column, and can click on <em>Attach File</em> to launch a small popup that will allow you to search for a post and attach the file.' ) . '</p>' . 153 147 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 154 '<p>' . __( '<a href="http://codex.wordpress.org/Media_Library_S ubPanel" target="_blank">Documentation on Media Library</a>' ) . '</p>' .148 '<p>' . __( '<a href="http://codex.wordpress.org/Media_Library_Screen" target="_blank">Documentation on Media Library</a>' ) . '</p>' . 155 149 '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' 156 150 ); … … 161 155 <div class="wrap"> 162 156 <?php screen_icon(); ?> 163 <h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class=" buttonadd-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php157 <h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php 164 158 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 165 159 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?>
Note: See TracChangeset
for help on using the changeset viewer.