WordPress.org

Make WordPress Core

Changeset 27269


Ignore:
Timestamp:
02/25/2014 07:29:49 PM (6 years ago)
Author:
wonderboymusic
Message:

Make sure data.meta always exists when rendering tracklists. Use $theme_width when rendering media tag in playlist template instead of recalculating.

Props helen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r27245 r27269  
    10711071        );
    10721072
     1073        $track['meta'] = array();
    10731074        $meta = wp_get_attachment_metadata( $attachment->ID );
    10741075        if ( ! empty( $meta ) ) {
    1075             $track['meta'] = array();
    10761076
    10771077            $keys = array( 'title', 'artist', 'band', 'album', 'genre', 'year', 'length', 'length_formatted' );
     
    11551155    <div class="wp-playlist-current-item"></div>
    11561156    <?php endif ?>
    1157     <<?php echo $type ?> controls="controls" preload="metadata" width="<?php echo $content_width - $outer ?>"></<?php echo $type ?>>
     1157    <<?php echo $type ?> controls="controls" preload="metadata" width="<?php echo $theme_width ?>"></<?php echo $type ?>>
    11581158    <div class="wp-playlist-next"></div>
    11591159    <div class="wp-playlist-prev"></div>
Note: See TracChangeset for help on using the changeset viewer.