2008-07-11 22:24:35 +02:00
|
|
|
<?php
|
2008-08-11 22:26:31 +02:00
|
|
|
/**
|
|
|
|
* WordPress Administration Generic POST Handler.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
2011-04-28 17:24:49 +02:00
|
|
|
/** We are located in WordPress Administration Screens */
|
2008-08-11 22:26:31 +02:00
|
|
|
define('WP_ADMIN', true);
|
2008-07-11 22:24:35 +02: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 22:43:35 +01:00
|
|
|
|
|
|
|
if ( !wp_validate_auth_cookie() )
|
|
|
|
$action .= '_nopriv';
|
|
|
|
|
2008-07-11 22:24:35 +02:00
|
|
|
if ( !empty($_REQUEST['action']) )
|
|
|
|
$action .= '_' . $_REQUEST['action'];
|
|
|
|
|
|
|
|
do_action($action);
|