mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
e3b46b25d3
git-svn-id: http://svn.automattic.com/wordpress/trunk@19712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
32 lines
590 B
PHP
32 lines
590 B
PHP
<?php
|
|
/**
|
|
* WordPress Administration Generic POST Handler.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Administration
|
|
*/
|
|
|
|
/** We are located in WordPress Administration Screens */
|
|
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');
|
|
|
|
nocache_headers();
|
|
|
|
do_action('admin_init');
|
|
|
|
$action = 'admin_post';
|
|
|
|
if ( !wp_validate_auth_cookie() )
|
|
$action .= '_nopriv';
|
|
|
|
if ( !empty($_REQUEST['action']) )
|
|
$action .= '_' . $_REQUEST['action'];
|
|
|
|
do_action($action);
|