Are .MP3 files with capital-letter extensions allowed?
-
My question is about the new [audio] shortcode in WordPress 3.6.
I am able to play a .mp3 file like this:
[audio src="https://example.com/wp-content/uploads/test.mp3"]However, if the .mp3 file has an extension with upper case letters, it doesn’t work:
[audio src="https://example.com/wp-content/uploads/test_capital.MP3"]Specifying the format in the shortcode gives different, but still not working, results:
[audio mp3="https://example.com/wp-content/uploads/test_capital.MP3"]I can see where the problems are that are causing this in /wp-includes/media.php, function wp_audio_shortcode.
My question: Is this behavior by design? Does WordPress 3.6 intend to only allow media files with lowercase extensions, or is this an oversight? I’m wondering if I need to file a bug report for this.
- The topic ‘Are .MP3 files with capital-letter extensions allowed?’ is closed to new replies.