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

git-svn-id: https://develop.svn.wordpress.org/trunk@17254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-11 19:58:58 +00:00
parent 3a2c242339
commit 5ce8a20462

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;
}