Changeset 29728
- Timestamp:
- 09/10/2014 09:56:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r29721 r29728 2861 2861 if ( ! empty( $data[$version]['comments'] ) ) { 2862 2862 foreach ( $data[$version]['comments'] as $key => $list ) { 2863 if ( ! empty( $list ) ) {2863 if ( 'length' !== $key && ! empty( $list ) ) { 2864 2864 $metadata[$key] = reset( $list ); 2865 2865 // Fix bug in byte stream analysis. … … 2923 2923 $metadata['mime_type'] = $data['mime_type']; 2924 2924 if ( ! empty( $data['playtime_seconds'] ) ) 2925 $metadata['length'] = (int) ceil( $data['playtime_seconds'] );2925 $metadata['length'] = (int) round( $data['playtime_seconds'] ); 2926 2926 if ( ! empty( $data['playtime_string'] ) ) 2927 2927 $metadata['length_formatted'] = $data['playtime_string']; … … 2979 2979 $metadata['mime_type'] = $data['mime_type']; 2980 2980 if ( ! empty( $data['playtime_seconds'] ) ) 2981 $metadata['length'] = (int) ceil( $data['playtime_seconds'] );2981 $metadata['length'] = (int) round( $data['playtime_seconds'] ); 2982 2982 if ( ! empty( $data['playtime_string'] ) ) 2983 2983 $metadata['length_formatted'] = $data['playtime_string'];
Note: See TracChangeset
for help on using the changeset viewer.