WordPress.org

Make WordPress Core

Ticket #10715: patch.diff

File patch.diff, 654 bytes (added by christoph179, 9 years ago)
  • press-this.php

     
    4545        $quick['post_category'] = isset($_REQUEST['post_category']) ? $_REQUEST['post_category'] : null;
    4646        $quick['tax_input'] = isset($_REQUEST['tax_input']) ? $_REQUEST['tax_input'] : '';
    4747        $quick['post_title'] = isset($_REQUEST['title']) ? $_REQUEST['title'] : '';
    48         $quick['post_content'] = '';
     48        $quick['post_content'] = isset($_REQUEST['content']) ? $_REQUEST['content'] : '';
    4949
    5050        // insert the post with nothing in it, to get an ID
    5151        $post_ID = wp_insert_post($quick, true);