WordPress.org

Make WordPress Core

Ticket #24116: 24116.3.diff

File 24116.3.diff, 529 bytes (added by kovshenin, 5 years ago)
  • wp-admin/edit-form-advanced.php

     
    139139
    140140        if ( ! $post_format ) {
    141141                $post_format = 'standard';
     142                if ( ! empty( $_REQUEST['post_format'] ) && in_array( $_REQUEST['post_format'], get_post_format_slugs() ) )
     143                        $post_format = $_REQUEST['post_format'];
     144
    142145                if ( 'auto-draft' == $post->post_status )
    143146                        $post_format_set_class = '';
    144147        }