Another fix for Press This, see #17144

git-svn-id: http://svn.automattic.com/wordpress/trunk@18574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-08-19 17:04:16 +00:00
parent e91e6de814
commit 4cca01b8c3
1 changed files with 2 additions and 1 deletions

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') ) {