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:
parent
6031c43ecd
commit
1d8f93ca24
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue