Changeset 15956
- Timestamp:
- 10/25/2010 02:58:25 AM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r15954 r15956 52 52 switch ( $action = $_GET['action'] ) : 53 53 case 'fetch-list' : 54 require_once( ABSPATH . '/wp-admin/includes/default-list-tables.php' ); 55 // Temp 56 require_once( ABSPATH . '/wp-admin/includes/list-table-posts.php' ); 57 58 $class = $_GET['list_args']['class']; 59 60 if ( class_exists( $class ) ) { 61 $current_screen = (object) $_GET['list_args']['screen']; 62 $wp_list_table = new $class; 63 $wp_list_table->ajax_response(); 64 } 65 66 die('0'); 54 55 $wp_list_table = get_list_table( $_GET['list_args']['class'] ); 56 if ( ! $wp_list_table ) 57 die( '0' ); 58 59 $current_screen = (object) $_GET['list_args']['screen']; 60 $wp_list_table->ajax_response(); 61 62 die( '0' ); 67 63 break; 68 64 case 'ajax-tag-search' : … … 559 555 set_current_screen($_POST['screen']); 560 556 561 $wp_list_table = get_list_table(' terms');557 $wp_list_table = get_list_table('WP_Terms_Table'); 562 558 563 559 $level = 0; … … 623 619 die('-1'); 624 620 625 $wp_list_table = get_list_table(' comments');621 $wp_list_table = get_list_table('WP_Comments_Table'); 626 622 $wp_list_table->from_ajax = true; 627 623 … … 652 648 die('-1'); 653 649 654 $wp_list_table = get_list_table(' post-comments');650 $wp_list_table = get_list_table('WP_Post_Comments_Table'); 655 651 656 652 $wp_list_table->prepare_items(); … … 677 673 check_ajax_referer( $action, '_ajax_nonce-replyto-comment' ); 678 674 679 $wp_list_table = get_list_table(' comments');675 $wp_list_table = get_list_table('WP_Comments_Table'); 680 676 $wp_list_table->checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; 681 677 … … 758 754 759 755 $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; 760 $wp_list_table = get_list_table( $checkbox ? ' comments' : 'post-comments' );756 $wp_list_table = get_list_table( $checkbox ? 'WP_Comments_Table' : 'WP_Post_Comments_Table' ); 761 757 762 758 ob_start(); … … 906 902 $user_object = new WP_User( $user_id ); 907 903 908 $wp_list_table = get_list_table(' users');904 $wp_list_table = get_list_table('WP_Users_Table'); 909 905 910 906 $x = new WP_Ajax_Response( array( … … 1205 1201 edit_post(); 1206 1202 1207 $wp_list_table = get_list_table(' posts');1203 $wp_list_table = get_list_table('WP_Posts_Table'); 1208 1204 1209 1205 $mode = $_POST['post_view']; … … 1215 1211 check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' ); 1216 1212 1217 $wp_list_table = get_list_table(' terms');1213 $wp_list_table = get_list_table('WP_Terms_Table'); 1218 1214 1219 1215 $wp_list_table->check_permissions('edit'); -
trunk/wp-admin/edit-comments.php
r15746 r15956 10 10 require_once('./admin.php'); 11 11 12 $wp_list_table = get_list_table(' comments');12 $wp_list_table = get_list_table('WP_Comments_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 -
trunk/wp-admin/edit-tags.php
r15823 r15956 10 10 require_once('./admin.php'); 11 11 12 $wp_list_table = get_list_table(' terms');12 $wp_list_table = get_list_table('WP_Terms_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 -
trunk/wp-admin/edit.php
r15746 r15956 10 10 require_once( './admin.php' ); 11 11 12 $wp_list_table = get_list_table(' posts');12 $wp_list_table = get_list_table('WP_Posts_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 -
trunk/wp-admin/link-manager.php
r15642 r15956 10 10 require_once ('admin.php'); 11 11 12 $wp_list_table = get_list_table(' links');12 $wp_list_table = get_list_table('WP_Links_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 -
trunk/wp-admin/network/sites.php
r15907 r15956 13 13 wp_die( __( 'Multisite support is not enabled.' ) ); 14 14 15 $wp_list_table = get_list_table(' sites');15 $wp_list_table = get_list_table('WP_Sites_Table'); 16 16 $wp_list_table->check_permissions(); 17 17 -
trunk/wp-admin/network/users.php
r15746 r15956 10 10 require_once( './admin.php' ); 11 11 12 $wp_list_table = get_list_table(' ms-users');12 $wp_list_table = get_list_table('WP_MS_Users_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 $wp_list_table->prepare_items(); -
trunk/wp-admin/plugin-install.php
r15867 r15956 10 10 require_once('./admin.php'); 11 11 12 $wp_list_table = get_list_table(' plugin-install');12 $wp_list_table = get_list_table('WP_Plugin_Install_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 $wp_list_table->prepare_items(); -
trunk/wp-admin/plugins.php
r15746 r15956 10 10 require_once('./admin.php'); 11 11 12 $wp_list_table = get_list_table(' plugins');12 $wp_list_table = get_list_table('WP_Plugins_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 -
trunk/wp-admin/theme-install.php
r15904 r15956 10 10 require_once('./admin.php'); 11 11 12 $wp_list_table = get_list_table(' theme-install');12 $wp_list_table = get_list_table('WP_Theme_Install_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 $wp_list_table->prepare_items(); -
trunk/wp-admin/themes.php
r15913 r15956 10 10 require_once('./admin.php'); 11 11 12 $wp_list_table = get_list_table(' themes');12 $wp_list_table = get_list_table('WP_Themes_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 -
trunk/wp-admin/upload.php
r15746 r15956 10 10 require_once( './admin.php' ); 11 11 12 $wp_list_table = get_list_table(' media');12 $wp_list_table = get_list_table('WP_Media_Table'); 13 13 $wp_list_table->check_permissions(); 14 14 -
trunk/wp-admin/users.php
r15830 r15956 13 13 require_once( ABSPATH . WPINC . '/registration.php'); 14 14 15 $wp_list_table = get_list_table(' users');15 $wp_list_table = get_list_table('WP_Users_Table'); 16 16 $wp_list_table->check_permissions(); 17 17
Note: See TracChangeset
for help on using the changeset viewer.