[wp-trac] [WordPress Trac] #38796: Customize media control button labels should automatically reflect the specified mime type
WordPress Trac
noreply at wordpress.org
Tue Nov 15 03:34:00 UTC 2016
#38796: Customize media control button labels should automatically reflect the
specified mime type
------------------------------+-------------------------
Reporter: celloexpressions | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: Customize | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-------------------------
[39234] updated the button labels for the header video control to reflect
that it's used for videos, rather than media in general. However, this
approach only fixes this one control instance, and is something that
should be brought to all media controls.
For 4.7, we should add an inline note where [39234] is referencing this
ticket and explaining that in the future all media controls will default
to labeling the buttons based on the mime type (and as a reminder to
remove those overrides). Then, this ticket can transition to a future
release/4.8 enhancement for updating the default button labels to use the
`mime_type` where possible, and fall back to the existing defaults with
`media`. We'll need an array of known mime types mapped to the
corresponding media type labels and should be able to substitute those
into each of the default button label strings in the control constructor.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38796>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list