[wp-trac] [WordPress Trac] #50066: Make alt text input a textarea on classic editor
WordPress Trac
noreply at wordpress.org
Tue Sep 20 04:00:49 UTC 2022
#50066: Make alt text input a textarea on classic editor
-------------------------------------------------+-------------------------
Reporter: edent | Owner:
| sabernhardt
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.1
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: ui,
has-screenshots | accessibility
-------------------------------------------------+-------------------------
Changes (by joedolson):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"54243" 54243]:
{{{
#!CommitTicketReference repository="" revision="54243"
Media: Change alt attribute field to textarea in media library.
Change the input field used for `alt` attributes in the media library
views from a text input to a textarea. This gives users more flexibility
in resizing the field for easier management of longer alt attributes.
This patch includes a less-common use of `esc_attr` for a `textarea`. This
is because the primary usage of the `alt` attribute will be escaped using
`esc_attr`, and the value in editing should match the value output on the
front end.
Props edent, sabernhardt, afercia, JavierCasares, audrasjb, joedolson.
Fixes #50066.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50066#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list