Opened 8 weeks ago
Last modified 5 weeks ago
#64929 new defect (bug)
Media edit screen shows file URL under “Permalink” for non-previewable formats
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Media | Keywords: | has-screenshots has-patch has-unit-tests |
| Focuses: | Cc: |
Description
On the Edit Media screen, non-previewable files (e.g. .avi) display both the attachment permalink and the direct file URL under the label “Permalink”. Only the first link is a permalink; the second is the raw file path.
For previewable formats (e.g. .mp4), only the permalink is shown.
Expected behavior:
The file URL should be labeled separately (e.g. “File URL”) or accompanied by a short notice indicating that no preview is available.
by the way the left padding of 10px is only applied for the permalink and therefore adds a visual glitch
Attachments (1)
Change History (4)
This ticket was mentioned in PR #11570 on WordPress/wordpress-develop by @sukhendu2002.
5 weeks ago
#2
- Keywords has-patch added
This ticket was mentioned in PR #11573 on WordPress/wordpress-develop by @dhrupo.
5 weeks ago
#3
- Keywords has-unit-tests added
## Summary
- Prevent the attachment edit screen from rendering the shortcode fallback file link for non-previewable audio/video files.
- Preserve normal previews for supported media types.
## Testing
- npm run test:php -- --filter Tests_Admin_IncludesMedia
- Reproduced locally with an uploaded .avi file on the media attachment edit screen
Trac ticket: https://core.trac.wordpress.org/ticket/64929
## Use of AI Tools