WordPress.org

Make WordPress Core

Changeset 16316


Ignore:
Timestamp:
11/12/2010 04:21:17 AM (9 years ago)
Author:
markjaquith
Message:

Always add in the current post format, in case the theme was switched to one that does not support it. props anderswc. fixes #15393. see #14746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r16314 r16316  
    164164        $post_format = '0';
    165165    $post_format_display = get_post_format_string( $post_format );
     166    // Add in the current one if it isn't there yet, in case the current theme doesn't support it
     167    if ( $post_format && !in_array( $post_format, $post_formats[0] ) )
     168        $post_formats[0][] = $post_format;
    166169?>
    167170<div class="misc-pub-section" id="post-formats"><label for="post-format"><?php _e( 'Format:' ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.