Set the post format before publishing the post in Press This. props Otto42, fixes #16192.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-01-11 19:58:58 +00:00
parent 6031c43ecd
commit 1d8f93ca24
1 changed files with 2 additions and 3 deletions

View File

@ -63,9 +63,6 @@ function press_it() {
wp_delete_post($post_ID);
wp_die($upload);
} else {
$quick['ID'] = $post_ID;
wp_update_post($quick);
// Post formats
if ( current_theme_supports( 'post-formats' ) && isset( $_POST['post_format'] ) ) {
$post_formats = get_theme_support( 'post-formats' );
@ -78,6 +75,8 @@ function press_it() {
}
}
$quick['ID'] = $post_ID;
wp_update_post($quick);
}
return $post_ID;
}