WordPress.org

Make WordPress Core

Ticket #15393: meta-boxes.php.diff

File meta-boxes.php.diff, 576 bytes (added by anderswc, 11 years ago)

Initial (very simple) pass at implementing this. Doesn't contain the warning message mentioned in the comments.

  • wp-admin/includes/meta-boxes.php

     
    163163        if ( !$post_format )
    164164                $post_format = '0';
    165165        $post_format_display = get_post_format_string( $post_format );
     166        if ( !in_array( $post_format, $post_formats[0] ) )
     167                $post_formats[0][] = $post_format;
    166168?>
    167169<div class="misc-pub-section" id="post-formats"><label for="post-format"><?php _e( 'Format:' ); ?></label>
    168170