mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 23:55:12 +01:00
24 lines
432 B
PHP
24 lines
432 B
PHP
|
<?php
|
||
|
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);
|
||
|
|
||
|
?>
|