Changes in trunk/wp-admin/edit.php [18222:17362]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r18222 r17362 1 1 <?php 2 2 /** 3 * Edit Posts Administration Screen.3 * Edit Posts Administration Panel. 4 4 * 5 5 * @package WordPress … … 121 121 break; 122 122 case 'edit': 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 } 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 ); 132 130 } 133 131 break; … … 144 142 145 143 $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 } 146 150 147 151 wp_enqueue_script('inline-edit-post'); … … 167 171 '<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>' . 168 172 '<p><strong>' . __('For more information:') . '</strong></p>' . 169 '<p>' . __('<a href="http://codex.wordpress.org/Posts_ Screen" target="_blank">Documentation on Managing Posts</a>') . '</p>' .173 '<p>' . __('<a href="http://codex.wordpress.org/Posts_Posts_SubPanel" target="_blank">Documentation on Managing Posts</a>') . '</p>' . 170 174 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 171 175 ); … … 176 180 '<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>' . 177 181 '<p><strong>' . __('For more information:') . '</strong></p>' . 178 '<p>' . __('<a href="http://codex.wordpress.org/Pages_ Screen" target="_blank">Documentation on Managing Pages</a>') . '</p>' .182 '<p>' . __('<a href="http://codex.wordpress.org/Pages_Pages_SubPanel" target="_blank">Documentation on Managing Pages</a>') . '</p>' . 179 183 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 180 184 ); … … 187 191 <div class="wrap"> 188 192 <?php screen_icon(); ?> 189 <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> <?php193 <h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 190 194 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 191 195 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?>
Note: See TracChangeset
for help on using the changeset viewer.