WordPress.org

Make WordPress Core

Changeset 23456


Ignore:
Timestamp:
02/19/2013 08:54:03 PM (7 years ago)
Author:
helen
Message:

Prevent a notice for post types that don't support post formats. props ethitter. fixes #23534.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r23449 r23456  
    128128
    129129// post format
     130$format_class = '';
    130131if ( post_type_supports( $post_type, 'post-formats' ) ) {
    131132    wp_enqueue_script( 'post-formats' );
    132133    $post_format = get_post_format();
    133     $format_class = '';
     134
    134135    if ( ! $post_format )
    135136        $post_format = 'standard';
Note: See TracChangeset for help on using the changeset viewer.