Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r18222 r17362  
    11<?php
    22/**
    3  * Edit Posts Administration Screen.
     3 * Edit Posts Administration Panel.
    44 *
    55 * @package WordPress
     
    121121            break;
    122122        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 );
    132130            }
    133131            break;
     
    144142
    145143$wp_list_table->prepare_items();
     144
     145$total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
     146if ( $pagenum > $total_pages && $total_pages > 0 ) {
     147    wp_redirect( add_query_arg( 'paged', $total_pages ) );
     148    exit;
     149}
    146150
    147151wp_enqueue_script('inline-edit-post');
     
    167171    '<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>' .
    168172    '<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>' .
    170174    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    171175    );
     
    176180    '<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>' .
    177181    '<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>' .
    179183    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    180184    );
     
    187191<div class="wrap">
    188192<?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> <?php
     193<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
    190194if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
    191195    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?>
Note: See TracChangeset for help on using the changeset viewer.