Skip to content

Conversation

@darylldoyle
Copy link
Collaborator

@darylldoyle darylldoyle commented Sep 17, 2025

Description of the Change

This pull request introduces an additional hook to ensure SVG uploads are allowed in all relevant media upload contexts. The main change is the use of the media_upload_tabs action to call the allow_svg_from_upload method, ensuring SVG support is consistently applied across all upload interfaces.

Closes #240, #244

How to test the Change

  • Add an image field to a settings page or a taxonomy term
  • Try uploading an SVG
  • It should be allowed

Changelog Entry

  • Added - The ability to upload SVGs from more admin locations.

Credits

Props @darylldoyle

Checklist:

@darylldoyle darylldoyle self-assigned this Sep 17, 2025
@github-actions github-actions bot added this to the 2.4.0 milestone Sep 17, 2025
@github-actions github-actions bot added the needs:code-review This requires code review. label Sep 17, 2025
@darylldoyle darylldoyle added the type:enhancement New feature or request. label Sep 17, 2025
@jeffpaul jeffpaul moved this to Code Review in Open Source Practice Sep 17, 2025
@dkotter dkotter linked an issue Sep 17, 2025 that may be closed by this pull request
1 task
Copy link
Collaborator

@dkotter dkotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested a few different upload scenarios and all are working for me now so I think this is good to go. If we get reports of other areas that still aren't working, we can look into those

@github-project-automation github-project-automation bot moved this from Code Review to QA Testing in Open Source Practice Sep 17, 2025
@dkotter dkotter merged commit a28eb04 into develop Sep 17, 2025
16 checks passed
@dkotter dkotter deleted the feature/allow-admin-uploads branch September 17, 2025 19:26
@github-project-automation github-project-automation bot moved this from QA Testing to Done in Open Source Practice Sep 17, 2025
@jonathan-dejong
Copy link

jonathan-dejong commented Dec 4, 2025

@darylldoyle @dkotter I'm seeing a new error in the Customizer with an upload field there which we did not have issues with before:
"This file cannot be processed by the web server."

Screen.Recording.2025-12-04.at.11.24.01.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review. type:enhancement New feature or request.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Unable to upload SVG to category custom field (ACF)

3 participants