WordPress.org

Make WordPress Core

Changeset 17254


Ignore:
Timestamp:
01/11/2011 07:58:58 PM (8 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r17140 r17254  
    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'] ) ) {
     
    7976        }
    8077
     78        $quick['ID'] = $post_ID;
     79        wp_update_post($quick);
    8180    }
    8281    return $post_ID;
Note: See TracChangeset for help on using the changeset viewer.