WordPress.org

Make WordPress Core

Ticket #49852: 49852.5.diff

File 49852.5.diff, 907 bytes (added by seanchayes, 15 months ago)

Updated spacing matching coding standards - no functional changes

  • src/wp-admin/includes/class-wp-media-list-table.php

     
    401401        public function column_title( $post ) {
    402402                list( $mime ) = explode( '/', $post->post_mime_type );
    403403
     404                $attachment_id = $post->ID;
     405
     406                if ( $mime == 'video' || $mime == 'audio' ){
     407                        $thumbnail_id = get_post_thumbnail_id($post->ID);
     408
     409                        if ( !empty( $thumbnail_id ) ){
     410                                $attachment_id = $thumbnail_id;
     411                        }
     412                }
     413
    404414                $title      = _draft_or_post_title();
    405                 $thumb      = wp_get_attachment_image( $post->ID, array( 60, 60 ), true, array( 'alt' => '' ) );
     415                $thumb      = wp_get_attachment_image( $attachment_id, array( 60, 60 ), true, array( 'alt' => '' ) );
    406416                $link_start = '';
    407417                $link_end   = '';
    408418