[wp-trac] [WordPress Trac] #61398: Missing src attribute on <audio> tag prevents m4a audio files playing in safari.
WordPress Trac
noreply at wordpress.org
Thu Nov 21 12:59:57 UTC 2024
#61398: Missing src attribute on <audio> tag prevents m4a audio files playing in
safari.
-------------------------------------+------------------------
Reporter: ericmulder | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.8
Component: Media | Version: 6.6
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------
Comment (by im3dabasia1):
== Test Report
=== Description
This report validates whether the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-
develop/pull/6755.diff
Added this shortcode in the new post
[audio src="http://localhost:9889/wp-
content/uploads/2024/11/sample-1-1.m4a"]
=== Environment
WordPress: 6.8-alpha-59274-src
PHP: 8.2.25
Server: nginx/1.27.2
Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.2.25)
Browser: Chrome 131.0.0.0
OS: macOS
MU Plugins: None activated
=== Actual Results
✅ The audio tag now has src attribute in safari and the audio is
playable, m4a audio clip is not playable.
=== Supplemental Artifacts
Video: https://jmp.sh/bZEleaAj
Added this code
{{{
// Dequeue Styles
function project_dequeue_unnecessary_styles() {
wp_dequeue_style( 'wp-mediaelement' );
wp_deregister_style( 'wp-mediaelement' );
}
add_action( 'wp_print_styles', 'project_dequeue_unnecessary_styles' );
// Dequeue JavaScripts
function project_dequeue_unnecessary_scripts() {
wp_dequeue_script( 'wp-mediaelement' );
wp_deregister_script( 'wp-mediaelement' );
}
add_action( 'wp_print_scripts', 'project_dequeue_unnecessary_scripts' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61398#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list