Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17362 r18222  
    11<?php
    22/**
    3  * Edit Posts Administration Panel.
     3 * Edit Posts Administration Screen.
    44 *
    55 * @package WordPress
     
    121121            break;
    122122        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                }
    130132            }
    131133            break;
     
    142144
    143145$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 }
    150146
    151147wp_enqueue_script('inline-edit-post');
     
    171167    '<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>' .
    172168    '<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>' .
    174170    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    175171    );
     
    180176    '<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>' .
    181177    '<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>' .
    183179    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    184180    );
     
    191187<div class="wrap">
    192188<?php screen_icon(); ?>
    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
     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
    194190if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
    195191    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?>
Note: See TracChangeset for help on using the changeset viewer.