Basically I'm flying blind here, but I found this line of code about halfway through the wp-includes/post.php file (If it is even right?):
Code:
function wp_publish_post($post_id) {
$post = get_post($post_id);
if ( empty($post) )
return;
if ( 'publish' == $post->post_status )
return;
return wp_update_post(array('post_status' => 'publish', 'ID' => $post_id, 'no_filter' => true));
}