#64487 closed defect (bug) (invalid)
Audio player in classic editor not loading assets
| Reported by: | wigglypoppins | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 6.9 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | ui |
Description
Hello,
A client of ours spotted an issue where the media element for playing audio used in the classic editor wasn't displaying properly on the front end. We'd not made any changes apart from routine plugin/core updates and after some investigation I noticed that the CSS and JS weren't being enqueued, I've tested this on a previous version on WordPress (6.8.2) and it worked and displayed perfectly fine so I can only assume this issue has been introduced in the latest version of WordPress (6.9)
To resolve this until a proper fix is pushed, I've manually enqueued these assets using:
function enqueue_media() {
wp_enqueue_script( 'wp-mediaelement' );
wp_enqueue_style( 'wp-mediaelement' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_media' );
Attachments (1)
Change History (4)
#1
@
6 months ago
- Keywords reporter-feedback added
@wigglypoppins Hello! Thanks for reporting.
Can you share the steps you took to reproduce the issue? You have the Classic Editor plugin installed? What theme do you have active? Are you able to reproduce the issue in a fresh install with the defaults, except for the Classic Editor plugin installed?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Broken media player