]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/admin-post.php
Wordpress 2.6.2
[autoinstalls/wordpress.git] / wp-admin / admin-post.php
1 <?php
2 define('WP_ADMIN', TRUE);
3
4 if ( defined('ABSPATH') )
5         require_once(ABSPATH . 'wp-load.php');
6 else
7         require_once('../wp-load.php');
8
9 require_once(ABSPATH . 'wp-admin/includes/admin.php');
10
11 if ( !wp_validate_auth_cookie() )
12         wp_die(__('Cheatin&#8217; uh?'));
13
14 nocache_headers();
15
16 do_action('admin_init');
17
18 $action = 'admin_post';
19 if ( !empty($_REQUEST['action']) )
20         $action .= '_' . $_REQUEST['action'];
21
22 do_action($action);
23
24 ?>