#59009 closed defect (bug) (fixed)
units missing in media details
Reported by: | Presskopp | Owned by: | joedolson |
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-screenshots has-patch commit |
Focuses: | Cc: |
Description
Some units are missing which have been there before, see #39667
Length and Dimensions have no units anymore. I don't know since when, just found out using v6.3
This is the view you get after clicking a video in media gallery (Attachment Details) and then click on "Edit more details"
Attachments (10)
Change History (22)
#2
@
16 months ago
btw: same issue in attachment details view.
The specific 'Dimensions' are generated in
https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-admin/includes/media.php#L3304
This ticket was mentioned in Slack in #core-media by antpb. View the logs.
7 months ago
#6
@
7 months ago
- Milestone changed from Awaiting Review to 6.6
- Owner set to joedolson
- Status changed from new to accepted
#7
@
7 months ago
- Keywords changes-requested added
Noting that in the modal, the text is "num by num pixels", and this patch makes the non-modal view "num x num px". For consistency and clarity, let's set both of them to the current string, using plain text and unabbreviated terminology.
#8
@
6 months ago
- Keywords changes-requested removed
Updated the patch to re-use the existing string for giving file dimensions.
#9
@
6 months ago
Test Report
Patch Tested: https://core.trac.wordpress.org/attachment/ticket/59009/59009.2.diff
Environment:
WordPress - 6.5.3
OS - Windows
Browser - Firefox
Theme: Twenty Seventeen
PHP - 8.1.23
Actual Results:
- Length and Dimensions units are showing in Attachment Details & Edit More Details(Click On Edit More Details) Screen with patch.✅
#10
@
6 months ago
- Keywords commit added
Thanks for testing @shailu25!
I think this is good to go; marking for commit.
Hello,
It seems that [43633] and [44481] (from #39667) only improved
media-template.php
and notmedia.php
where I believe the strings you mentioned come from.See https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-admin/includes/media.php#L1665