From 76dd3da7185af7d68bc95032d300d2ec9d0666a4 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 8 Dec 2008 17:44:17 +0000 Subject: [PATCH] Update for Press This from noel, see #7949 git-svn-id: https://develop.svn.wordpress.org/trunk@10127 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/press-this.php | 74 +++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 39 deletions(-) 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': ?> -