diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index cc9e551754..d2cf9124dc 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -61,7 +61,7 @@ function press_it() { // insert the post with nothing in it, to get an ID $post_ID = wp_insert_post($quick, true); - + $content = $_REQUEST['content']; if($_REQUEST['photo_src']) @@ -81,7 +81,7 @@ function press_it() { // error handling for $post if ( is_wp_error($post_ID)) { wp_die($id); - wp_delete_post($post_ID);error_log('2'); + wp_delete_post($post_ID); // error handling for media_sideload } elseif ( is_wp_error($upload)) { wp_die($upload); @@ -97,9 +97,7 @@ function press_it() { if ( 'post' == $_REQUEST['action'] ) { check_admin_referer('press-this'); $post_ID = press_it(); - error_log($post_ID); $posted = $post_ID; - //wp_redirect('press-this.php?posted=' . press_it()); } // Set Variables @@ -125,8 +123,7 @@ switch ($_REQUEST['ajax']) {

- - +

'); insert_editor("\n\n" + '

' + desc + '

'); } - /*tinyMCE.activeEditor.resizeToContent();*/ return false; } @@ -499,7 +492,7 @@ die;