WordPress.org

Make WordPress Core

Changeset 27244


Ignore:
Timestamp:
02/24/2014 09:05:00 PM (7 years ago)
Author:
wonderboymusic
Message:

Supply mime-type instead of extension for an item's type property in playlist JSON.

See #26631.

File:
1 edited

Legend:

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

    r27240 r27244  
    10641064        $ftype = wp_check_filetype( $url, wp_get_mime_types() );
    10651065        $track = array(
    1066             'type' => $type,
    10671066            'src' => $url,
    1068             'type' => $ftype['ext'],
     1067            'type' => $ftype['type'],
    10691068            'title' => get_the_title( $attachment->ID ),
    10701069            'caption' => wptexturize( $attachment->post_excerpt ),
Note: See TracChangeset for help on using the changeset viewer.