Another fix for Press This, see #17144

git-svn-id: https://develop.svn.wordpress.org/trunk@18574 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-08-19 17:04:16 +00:00
parent 8fc9270239
commit 750d395b81

View File

@@ -28,11 +28,12 @@ if ( ! current_user_can('edit_posts') )
function press_it() {
$post = get_default_post_to_edit('post', true);
$post = get_object_vars($post);
$post_ID = $post['ID'];
$post['post_category'] = isset($_POST['post_category']) ? $_POST['post_category'] : null;
$post['tax_input'] = isset($_POST['tax_input']) ? $_POST['tax_input'] : null;
$post['post_title'] = isset($_POST['title']) ? $_POST['title'] : '';
$post['post_content'] = isset($_POST['post_content']) ? $_POST['post_content'] : '';
$post['post_content'] = isset($_POST['content']) ? $_POST['content'] : '';
$upload = false;
if ( !empty($_POST['photo_src']) && current_user_can('upload_files') ) {