a70e1a34e5
git-svn-id: https://develop.svn.wordpress.org/trunk@8618 602fd350-edb4-49c9-b593-d223f7449a82
32 lines
603 B
PHP
32 lines
603 B
PHP
<?php
|
|
/**
|
|
* WordPress Administration Generic POST Handler.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Administration
|
|
*/
|
|
|
|
/** We are located in WordPress Administration Panels */
|
|
define('WP_ADMIN', true);
|
|
|
|
if ( defined('ABSPATH') )
|
|
require_once(ABSPATH . 'wp-load.php');
|
|
else
|
|
require_once('../wp-load.php');
|
|
|
|
require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
|
|
|
if ( !wp_validate_auth_cookie() )
|
|
wp_die(__('Cheatin’ uh?'));
|
|
|
|
nocache_headers();
|
|
|
|
do_action('admin_init');
|
|
|
|
$action = 'admin_post';
|
|
if ( !empty($_REQUEST['action']) )
|
|
$action .= '_' . $_REQUEST['action'];
|
|
|
|
do_action($action);
|
|
|
|
?>
|