diff --git a/src/wp-admin/includes/class-wp-press-this.php b/src/wp-admin/includes/class-wp-press-this.php index 7151a0cb1f..4f4bb4efd7 100644 --- a/src/wp-admin/includes/class-wp-press-this.php +++ b/src/wp-admin/includes/class-wp-press-this.php @@ -723,10 +723,10 @@ class WP_Press_This { $post = get_default_post_to_edit( 'post', true ); $post_ID = (int) $post->ID; + wp_enqueue_media( array( 'post' => $post_ID ) ); wp_enqueue_style( 'press-this' ); wp_enqueue_script( 'press-this' ); wp_enqueue_script( 'json2' ); - wp_enqueue_media( array( 'post' => $post->ID ) ); wp_enqueue_script( 'editor' ); $supports_formats = false; @@ -735,7 +735,7 @@ class WP_Press_This { if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) ) { $supports_formats = true; - if ( ! ( $post_format = get_post_format( $post->ID ) ) ) { + if ( ! ( $post_format = get_post_format( $post_ID ) ) ) { $post_format = 0; } } @@ -794,7 +794,7 @@ $admin_body_classes = apply_filters( 'admin_body_class', '' );