Changeset 15496 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 08/12/2010 11:21:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r15493 r15496 559 559 560 560 require_once( './includes/default-list-tables.php' ); 561 $table = new WP_Terms_Table( 'ajax');561 $table = new WP_Terms_Table(); 562 562 563 563 $level = 0; … … 627 627 628 628 require_once( './includes/default-list-tables.php' ); 629 $table = new WP_Comments_Table( 'ajax');629 $table = new WP_Comments_Table(); 630 630 631 631 global $comments; … … 660 660 661 661 require_once( './includes/default-list-tables.php' ); 662 $table = new WP_Comments_Table( 'ajax');662 $table = new WP_Comments_Table(); 663 663 664 664 global $comments; … … 686 686 687 687 require_once( './includes/default-list-tables.php' ); 688 $table = new WP_Comments_Table( 'ajax');688 $table = new WP_Comments_Table(); 689 689 690 690 $comment_post_ID = (int) $_POST['comment_post_ID']; … … 777 777 778 778 require_once( './includes/default-list-tables.php' ); 779 $table = new WP_Comments_Table( 'ajax');779 $table = new WP_Comments_Table(); 780 780 781 781 ob_start(); … … 926 926 927 927 require_once( './includes/default-list-tables.php' ); 928 $table = new WP_Users_Table( 'ajax');928 $table = new WP_Users_Table(); 929 929 930 930 $x = new WP_Ajax_Response( array( … … 1219 1219 1220 1220 require_once( './includes/default-list-tables.php' ); 1221 $table = new WP_Posts_Table( 'ajax');1221 $table = new WP_Posts_Table(); 1222 1222 1223 1223 $mode = $_POST['post_view']; … … 1229 1229 check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' ); 1230 1230 1231 $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : false; 1232 if ( ! $taxonomy ) 1233 die( __('Cheatin’ uh?') ); 1234 $tax = get_taxonomy($taxonomy); 1235 1236 if ( ! current_user_can( $tax->cap->edit_terms ) ) 1237 die( __('Cheatin’ uh?') ); 1231 require_once( './includes/default-list-tables.php' ); 1232 $table = new WP_Terms_Table(); 1233 1234 $table->check_permissions('edit'); 1238 1235 1239 1236 if ( ! isset($_POST['tax_ID']) || ! ( $id = (int) $_POST['tax_ID'] ) ) 1240 1237 die(-1); 1241 1242 $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag';1243 1238 1244 1239 $tag = get_term( $id, $taxonomy ); … … 1253 1248 die( __('Item not updated.') ); 1254 1249 } 1255 1256 set_current_screen( 'edit-' . $taxonomy );1257 1258 require_once( './includes/default-list-tables.php' );1259 $table = new WP_Terms_Table( 'ajax' );1260 1250 1261 1251 echo $table->single_row( $tag, 0, $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.