WordPress.org

Make WordPress Core

Ticket #24116: 24116.diff

File 24116.diff, 541 bytes (added by wonderboymusic, 2 years ago)
  • wp-admin/edit-form-advanced.php

    diff --git wp-admin/edit-form-advanced.php wp-admin/edit-form-advanced.php
    index ad44a52..0831927 100644
    if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'show_po 
    138138        $post_format_set_class = 'post-format-set'; 
    139139 
    140140        if ( ! $post_format ) { 
    141                 $post_format = 'standard'; 
     141                $post_format = ! empty( $_GET['format'] ) ? $_GET['format'] : 'standard'; 
    142142                if ( 'auto-draft' == $post->post_status ) 
    143143                        $post_format_set_class = ''; 
    144144        }