Make WordPress Core

#58128 closed defect (bug) (invalid)

Deregistering wp-mediaelement also removes media uploader CSS when using ACF on front-end

Reported by: openbayou's profile openbayou Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

I'm making a WordPress site for clients to add items to a post on the front end. I'm using ACF and acf_form to display a custom field on the page that has the ability to upload a file. That file is an MP3 file and the field is wrapped in <audio>.

The bug I'm submitting is when you unregister mediaelements, it removes the CSS that the media uploader uses to upload a file. If you want to style the player differently than the default, you have to unregister mediaelements. When you unregister mediaelements, it removes the CSS file used to upload media files to WP.

Attachments (2)

Screenshot 2023-04-13 at 11.30.44 AM.png (739.8 KB) - added by openbayou 13 months ago.
Screenshot 2023-04-13 at 11.33.40 AM.png (671.8 KB) - added by openbayou 13 months ago.

Download all attachments as: .zip

Change History (4)

This ticket was mentioned in Slack in #core-media by joedolson. View the logs.


13 months ago

#2 @antpb
13 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi @openbayou ! I work on the ACF team and am going to raise this to see if we can provide a fix on the ACF side. I think since this is specific to ACF we can close this issue to focus on a support ticket. Can you by chance open one with us so we can have a thread started to update you when we have identified a fix?

Going to close this ticket so we can keep the Core backlog true. Thanks for the report!

Note: See TracTickets for help on using tickets.