Changeset 10720
- Timestamp:
- 03/05/2009 09:43:35 PM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r10719 r10720 37 37 $x->send(); 38 38 } 39 40 if ( !empty( $_POST['action']) ) 41 do_action( 'wp_ajax_nopriv_' . $_POST['action'] ); 39 42 40 43 die('-1'); -
trunk/wp-admin/admin-post.php
r8618 r10720 17 17 require_once(ABSPATH . 'wp-admin/includes/admin.php'); 18 18 19 if ( !wp_validate_auth_cookie() )20 wp_die(__('Cheatin’ uh?'));21 22 19 nocache_headers(); 23 20 … … 25 22 26 23 $action = 'admin_post'; 24 25 if ( !wp_validate_auth_cookie() ) 26 $action .= '_nopriv'; 27 27 28 if ( !empty($_REQUEST['action']) ) 28 29 $action .= '_' . $_REQUEST['action'];
Note: See TracChangeset
for help on using the changeset viewer.