Make WordPress Core


Ignore:
Timestamp:
08/22/2010 11:22:46 AM (14 years ago)
Author:
scribu
Message:

replace $table with $wp_list_table. See #14651

File:
1 edited

Legend:

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

    r15509 r15519  
    1212require_once( './includes/default-list-tables.php' );
    1313
    14 $table = new WP_Comments_Table;
    15 $table->check_permissions();
     14$wp_list_table = new WP_Comments_Table;
     15$wp_list_table->check_permissions();
    1616
    1717if ( isset( $_REQUEST['doaction'] ) ||  isset( $_REQUEST['doaction2'] ) || isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
     
    9898}
    9999
    100 $table->prepare_items();
     100$wp_list_table->prepare_items();
    101101
    102102wp_enqueue_script('admin-comments');
     
    258258<input type="hidden" name="pagegen_timestamp" value="<?php echo esc_attr(current_time('mysql', 1)); ?>" />
    259259
    260 <input type="hidden" name="_total" value="<?php echo esc_attr( $table->get_pagination_arg('total_items') ); ?>" />
    261 <input type="hidden" name="_per_page" value="<?php echo esc_attr( $table->get_pagination_arg('per_page') ); ?>" />
    262 <input type="hidden" name="_page" value="<?php echo esc_attr( $table->get_pagination_arg('page') ); ?>" />
     260<input type="hidden" name="_total" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg('total_items') ); ?>" />
     261<input type="hidden" name="_per_page" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg('per_page') ); ?>" />
     262<input type="hidden" name="_page" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg('page') ); ?>" />
    263263
    264264<?php if ( isset($_REQUEST['paged']) ) { ?>
     
    266266<?php } ?>
    267267
    268 <?php if ( $table->has_items() ) { ?>
    269 
    270 <?php $table->display_table(); ?>
     268<?php if ( $wp_list_table->has_items() ) { ?>
     269
     270<?php $wp_list_table->display_table(); ?>
    271271
    272272<br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.