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', '' );
- + add( 'wp-color-picker', "/wp-admin/css/color-picker$suffix.css" ); $styles->add( 'customize-controls', "/wp-admin/css/customize-controls$suffix.css", array( 'wp-admin', 'colors', 'ie', 'imgareaselect' ) ); $styles->add( 'customize-widgets', "/wp-admin/css/customize-widgets$suffix.css", array( 'wp-admin', 'colors' ) ); - $styles->add( 'press-this', "/wp-admin/css/press-this$suffix.css", array( 'open-sans' ) ); + $styles->add( 'press-this', "/wp-admin/css/press-this$suffix.css", array( 'open-sans', 'buttons' ) ); $styles->add( 'ie', "/wp-admin/css/ie$suffix.css" ); $styles->add_data( 'ie', 'conditional', 'lte IE 7' );