Changeset 15528 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 08/25/2010 12:51:44 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r15519 r15528 52 52 switch ( $action = $_GET['action'] ) : 53 53 case 'fetch-list' : 54 require_once( './includes/default-list-tables.php' );54 require_once( ABSPATH . '/wp-admin/includes/default-list-tables.php' ); 55 55 56 56 $class = $_GET['list_args']['class']; 57 57 58 58 if ( class_exists( $class ) ) { 59 global $current_screen;60 59 $current_screen = (object) $_GET['list_args']['screen']; 61 60 $wp_list_table = new $class; … … 558 557 set_current_screen($_POST['screen']); 559 558 560 require_once( './includes/default-list-tables.php' ); 561 $wp_list_table = new WP_Terms_Table(); 559 $wp_list_table = get_list_table('terms'); 562 560 563 561 $level = 0; … … 626 624 die('-1'); 627 625 628 require_once( './includes/default-list-tables.php' ); 629 $wp_list_table = new WP_Comments_Table(); 626 $wp_list_table = get_list_table('comments'); 630 627 $wp_list_table->prepare_items(); 631 628 … … 655 652 die('-1'); 656 653 657 require_once( './includes/default-list-tables.php' ); 658 $wp_list_table = new WP_Comments_Table(); 654 $wp_list_table = get_list_table('comments'); 659 655 $wp_list_table->prepare_items(); 660 656 … … 680 676 check_ajax_referer( $action, '_ajax_nonce-replyto-comment' ); 681 677 682 require_once( './includes/default-list-tables.php' ); 683 $wp_list_table = new WP_Comments_Table(); 678 $wp_list_table = get_list_table('comments'); 684 679 685 680 $comment_post_ID = (int) $_POST['comment_post_ID']; … … 762 757 $comments_listing = isset($_POST['comments_listing']) ? $_POST['comments_listing'] : ''; 763 758 764 require_once( './includes/default-list-tables.php' ); 765 $wp_list_table = new WP_Comments_Table(); 759 $wp_list_table = get_list_table('comments'); 766 760 767 761 ob_start(); … … 911 905 $user_object = new WP_User( $user_id ); 912 906 913 require_once( './includes/default-list-tables.php' ); 914 $wp_list_table = new WP_Users_Table(); 907 $wp_list_table = get_list_table('users'); 915 908 916 909 $x = new WP_Ajax_Response( array( … … 1204 1197 edit_post(); 1205 1198 1206 require_once( './includes/default-list-tables.php' ); 1207 $wp_list_table = new WP_Posts_Table(); 1199 $wp_list_table = get_list_table('posts'); 1208 1200 1209 1201 $mode = $_POST['post_view']; … … 1215 1207 check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' ); 1216 1208 1217 require_once( './includes/default-list-tables.php' ); 1218 $wp_list_table = new WP_Terms_Table(); 1209 $wp_list_table = get_list_table('terms'); 1219 1210 1220 1211 $wp_list_table->check_permissions('edit');
Note: See TracChangeset
for help on using the changeset viewer.