diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index ca9f86265a..1823d2173e 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -53,7 +53,7 @@ function aposfix($text) { */ function press_it() { // define some basic variables - $quick['post_status'] = isset($_REQUEST['publish']) ? 'publish' : 'draft'; + $quick['post_status'] = 'draft'; // set as draft first $quick['post_category'] = $_REQUEST['post_category']; $quick['tags_input'] = $_REQUEST['tags_input']; $quick['post_title'] = $_REQUEST['title']; @@ -75,7 +75,8 @@ function press_it() { if( !is_wp_error($upload) ) $content = preg_replace('/]*)src=(\"|\')'.$quoted.'(\2)([^>\/]*)\/*>/is', $upload, $content); } - // set the post_content + // set the post_content and status + $quick['post_status'] = isset($_REQUEST['publish']) ? 'publish' : 'draft'; $quick['post_content'] = $content; // error handling for $post if ( is_wp_error($post_ID)) { @@ -112,7 +113,7 @@ $image = $_GET['i']; if($_REQUEST['ajax']) { switch ($_REQUEST['ajax']) { case 'video': ?> -