Changeset 15519 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 08/22/2010 11:22:46 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r15509 r15519 12 12 require_once( './includes/default-list-tables.php' ); 13 13 14 $ table = new WP_Comments_Table;15 $ table->check_permissions();14 $wp_list_table = new WP_Comments_Table; 15 $wp_list_table->check_permissions(); 16 16 17 17 if ( isset( $_REQUEST['doaction'] ) || isset( $_REQUEST['doaction2'] ) || isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) { … … 98 98 } 99 99 100 $ table->prepare_items();100 $wp_list_table->prepare_items(); 101 101 102 102 wp_enqueue_script('admin-comments'); … … 258 258 <input type="hidden" name="pagegen_timestamp" value="<?php echo esc_attr(current_time('mysql', 1)); ?>" /> 259 259 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') ); ?>" /> 263 263 264 264 <?php if ( isset($_REQUEST['paged']) ) { ?> … … 266 266 <?php } ?> 267 267 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(); ?> 271 271 272 272 <br class="clear" />
Note: See TracChangeset
for help on using the changeset viewer.