WordPress.org

Make WordPress Core

Ticket #16503: 16503.2.diff

File 16503.2.diff, 441 bytes (added by nacin, 5 years ago)
  • wp-includes/post.php

     
    487487function get_post_format( $post = null ) { 
    488488        $post = get_post($post); 
    489489 
     490        if ( ! post_type_supports( $post->post_type, 'post-formats' ) ) 
     491                return false; 
     492 
    490493        $_format = get_the_terms( $post->ID, 'post_format' ); 
    491494 
    492495        if ( empty( $_format ) )