Make WordPress Core


Ignore:
Timestamp:
03/29/2006 01:51:55 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r3621 r3660  
    1818    }
    1919}
    20 
    2120if (isset($_POST['deletepost']))
    2221$action = "delete";
    2322
    2423switch($action) {
     24case 'postajaxpost':
    2525case 'post':
    2626    check_admin_referer();
    2727   
    28     $post_ID = write_post();
     28    $post_ID = 'post' == $action ? write_post() : edit_post();
    2929
    3030    // Redirect.
Note: See TracChangeset for help on using the changeset viewer.