From 1d8f93ca24595900bbf87688b5d7d76d0787ecfd Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 11 Jan 2011 19:58:58 +0000 Subject: [PATCH] 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 --- wp-admin/press-this.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index b16f57757..aa4eb47f0 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -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; }