2008-07-11 16:24:35 -04:00
|
|
|
<?php
|
2008-08-11 16:26:31 -04:00
|
|
|
/**
|
|
|
|
* WordPress Administration Generic POST Handler.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** We are located in WordPress Administration Panels */
|
|
|
|
define('WP_ADMIN', true);
|
2008-07-11 16:24:35 -04:00
|
|
|
|
|
|
|
if ( defined('ABSPATH') )
|
|
|
|
require_once(ABSPATH . 'wp-load.php');
|
|
|
|
else
|
|
|
|
require_once('../wp-load.php');
|
|
|
|
|
|
|
|
require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
|
|
|
|
|
|
|
nocache_headers();
|
|
|
|
|
|
|
|
do_action('admin_init');
|
|
|
|
|
|
|
|
$action = 'admin_post';
|
2009-03-05 16:43:35 -05:00
|
|
|
|
|
|
|
if ( !wp_validate_auth_cookie() )
|
|
|
|
$action .= '_nopriv';
|
|
|
|
|
2008-07-11 16:24:35 -04:00
|
|
|
if ( !empty($_REQUEST['action']) )
|
|
|
|
$action .= '_' . $_REQUEST['action'];
|
|
|
|
|
|
|
|
do_action($action);
|
|
|
|
|
|
|
|
?>
|