Make WordPress Core

Ticket #9403: admin-ajax.php.diff

File admin-ajax.php.diff, 481 bytes (added by sojweb, 16 years ago)
  • wp-admin/admin-ajax.php

     
    10781078        if ( empty($data['ping_status']) )
    10791079                $data['ping_status'] = 'closed';
    10801080
     1081        // If author isn't specified, keep original post author
     1082        if(empty($data['post_author']))
     1083                $data['post_author'] = $post['post_author'];
     1084
    10811085        // update the post
    10821086        $_POST = $data;
    10831087        edit_post();