AJAX, cause you love it. Props mdawaffe. fixes #2561

git-svn-id: https://develop.svn.wordpress.org/trunk@3660 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-03-29 01:51:55 +00:00
parent 6d474bde7a
commit cb23290318
24 changed files with 595 additions and 445 deletions

View File

@@ -17,15 +17,15 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
}
}
}
if (isset($_POST['deletepost']))
$action = "delete";
switch($action) {
case 'postajaxpost':
case 'post':
check_admin_referer();
$post_ID = write_post();
$post_ID = 'post' == $action ? write_post() : edit_post();
// Redirect.
if (!empty($_POST['mode'])) {