Make WordPress Core

Ticket #24034: patch-post-format-filter-fix.diff

File patch-post-format-filter-fix.diff, 725 bytes (added by tlovett1, 12 years ago)

Patch moves $post_format_options outside of if statement checking show_post_format_ui filter

  • wp-admin/edit-form-advanced.php

     
    128128
    129129// post format
    130130$format_class = '';
     131$post_format_options = '';
    131132if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'show_post_format_ui', true, $post ) ) {
    132133        wp_enqueue_script( 'post-formats' );
    133134        wp_enqueue_script( 'wp-mediaelement' );
     
    172173                        'description' => __( 'An aside is a quick thought or side topic. Use the editor to compose one.' )
    173174                )
    174175        );
    175         $post_format_options = '';
    176176
    177177        foreach ( $all_post_formats as $slug => $attr ) {
    178178                $class = '';