Changeset 6983 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 02/22/2008 05:43:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r6954 r6983 8 8 die('-1'); 9 9 10 if ( 'ajax-tag-search' == $_GET['action'] ) {10 if ( isset($_GET['action']) && 'ajax-tag-search' == $_GET['action'] ) { 11 11 if ( !current_user_can( 'manage_categories' ) ) 12 12 die('-1'); … … 21 21 } 22 22 23 $id = (int) $_POST['id'];23 $id = isset($_POST['id'])? (int) $_POST['id'] : 0; 24 24 switch ( $action = $_POST['action'] ) : 25 25 case 'add-post' : … … 166 166 if ( 0 > $parent = (int) $_POST['newcat_parent'] ) 167 167 $parent = 0; 168 169 $checked_categories = array_map( 'absint', (array) $ _POST['post_category']);168 $post_category = isset($_POST['post_category'])? (array) $_POST['post_category'] : array(); 169 $checked_categories = array_map( 'absint', (array) $post_category ); 170 170 171 171 $x = new WP_Ajax_Response();
Note: See TracChangeset
for help on using the changeset viewer.