Changeset 16992 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 12/16/2010 09:18:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r16991 r16992 62 62 die( '0' ); 63 63 64 $wp_list_table->check_permissions(); 64 if ( ! $wp_list_table->ajax_user_can() ) 65 die( '-1' ); 66 65 67 $wp_list_table->ajax_response(); 66 68 … … 1201 1203 check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' ); 1202 1204 1203 set_current_screen( 'edit-' . $_POST['taxonomy'] ); 1205 $taxonomy = sanitize_key( $_POST['taxonomy'] ); 1206 $tax = get_taxonomy( $taxonomy ); 1207 if ( ! $tax ) 1208 die( '0' ); 1209 1210 if ( ! current_user_can( $tax->cap->edit_terms ) ) 1211 die( '-1' ); 1212 1213 set_current_screen( 'edit-' . $taxonomy ); 1204 1214 1205 1215 $wp_list_table = get_list_table('WP_Terms_List_Table'); 1206 1207 $wp_list_table->check_permissions('edit');1208 1216 1209 1217 if ( ! isset($_POST['tax_ID']) || ! ( $id = (int) $_POST['tax_ID'] ) )
Note: See TracChangeset
for help on using the changeset viewer.