Make WordPress Core

Changeset 29208


Ignore:
Timestamp:
07/17/2014 05:41:06 PM (10 years ago)
Author:
wonderboymusic
Message:

After [29106], check for data.meta before attempting to render data.meta.bitrate.

See #28839.

File:
1 edited

Legend:

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

    r29204 r29208  
    329329                <# } #>
    330330
    331                 <# if ( 'audio' === data.type && data.meta.bitrate ) { #>
     331                <# if ( 'audio' === data.type && data.meta && data.meta.bitrate ) { #>
    332332                    <div class="bitrate">
    333333                        <strong><?php _e( 'Bitrate:' ); ?></strong> {{ Math.round( data.meta.bitrate / 1000 ) }}kb/s
Note: See TracChangeset for help on using the changeset viewer.