mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * WordPress Administration Generic POST Handler.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 /** We are located in WordPress Administration Panels */
mp-wp_genesis 10 define('WP_ADMIN', true);
mp-wp_genesis 11
mp-wp_genesis 12 if ( defined('ABSPATH') )
mp-wp_genesis 13 require_once(ABSPATH . 'wp-load.php');
mp-wp_genesis 14 else
mp-wp_genesis 15 require_once('../wp-load.php');
mp-wp_genesis 16
mp-wp_genesis 17 require_once(ABSPATH . 'wp-admin/includes/admin.php');
mp-wp_genesis 18
mp-wp_genesis 19 if ( !wp_validate_auth_cookie() )
mp-wp_genesis 20 wp_die(__('Cheatin’ uh?'));
mp-wp_genesis 21
mp-wp_genesis 22 nocache_headers();
mp-wp_genesis 23
mp-wp_genesis 24 do_action('admin_init');
mp-wp_genesis 25
mp-wp_genesis 26 $action = 'admin_post';
mp-wp_genesis 27 if ( !empty($_REQUEST['action']) )
mp-wp_genesis 28 $action .= '_' . $_REQUEST['action'];
mp-wp_genesis 29
mp-wp_genesis 30 do_action($action);
mp-wp_genesis 31
mp-wp_genesis 32 ?>