Make WordPress Core

Ticket #16192: 16192.diff

File 16192.diff, 603 bytes (added by Otto42, 14 years ago)

press this post format fix

  • wp-admin/press-this.php

     
    6363                wp_delete_post($post_ID);
    6464                wp_die($upload);
    6565        } else {
    66                 $quick['ID'] = $post_ID;
    67                 wp_update_post($quick);
    68 
    6966                // Post formats
    7067                if ( current_theme_supports( 'post-formats' ) && isset( $_POST['post_format'] ) ) {
    7168                        $post_formats = get_theme_support( 'post-formats' );
     
    7875                        }
    7976                }
    8077
     78                $quick['ID'] = $post_ID;
     79                wp_update_post($quick);
    8180        }
    8281        return $post_ID;
    8382}