Changes in trunk/wp-admin/edit.php [17362:18222]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r17362 r18222 1 1 <?php 2 2 /** 3 * Edit Posts Administration Panel.3 * Edit Posts Administration Screen. 4 4 * 5 5 * @package WordPress … … 121 121 break; 122 122 case 'edit': 123 $done = bulk_edit_posts($_REQUEST); 124 125 if ( is_array($done) ) { 126 $done['updated'] = count( $done['updated'] ); 127 $done['skipped'] = count( $done['skipped'] ); 128 $done['locked'] = count( $done['locked'] ); 129 $sendback = add_query_arg( $done, $sendback ); 123 if ( isset($_REQUEST['bulk_edit']) ) { 124 $done = bulk_edit_posts($_REQUEST); 125 126 if ( is_array($done) ) { 127 $done['updated'] = count( $done['updated'] ); 128 $done['skipped'] = count( $done['skipped'] ); 129 $done['locked'] = count( $done['locked'] ); 130 $sendback = add_query_arg( $done, $sendback ); 131 } 130 132 } 131 133 break; … … 142 144 143 145 $wp_list_table->prepare_items(); 144 145 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );146 if ( $pagenum > $total_pages && $total_pages > 0 ) {147 wp_redirect( add_query_arg( 'paged', $total_pages ) );148 exit;149 }150 146 151 147 wp_enqueue_script('inline-edit-post'); … … 171 167 '<p>' . __('You can also edit multiple posts at once. Select the posts you want to edit using the checkboxes, select Edit from the Bulk Actions menu and click Apply. You will be able to change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.') . '</p>' . 172 168 '<p><strong>' . __('For more information:') . '</strong></p>' . 173 '<p>' . __('<a href="http://codex.wordpress.org/Posts_ Posts_SubPanel" target="_blank">Documentation on Managing Posts</a>') . '</p>' .169 '<p>' . __('<a href="http://codex.wordpress.org/Posts_Screen" target="_blank">Documentation on Managing Posts</a>') . '</p>' . 174 170 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 175 171 ); … … 180 176 '<p>' . __('You can also perform the same types of actions, including narrowing the list by using the filters, acting on a Page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple Pages at once.') . '</p>' . 181 177 '<p><strong>' . __('For more information:') . '</strong></p>' . 182 '<p>' . __('<a href="http://codex.wordpress.org/Pages_ Pages_SubPanel" target="_blank">Documentation on Managing Pages</a>') . '</p>' .178 '<p>' . __('<a href="http://codex.wordpress.org/Pages_Screen" target="_blank">Documentation on Managing Pages</a>') . '</p>' . 183 179 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 184 180 ); … … 191 187 <div class="wrap"> 192 188 <?php screen_icon(); ?> 193 <h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class=" buttonadd-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php189 <h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 194 190 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 195 191 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?>
Note: See TracChangeset
for help on using the changeset viewer.