[wp-trac] [WordPress Trac] #60158: The description field for media doesn't automatically make paragraphs in the generated code
WordPress Trac
noreply at wordpress.org
Sat Jun 8 20:01:19 UTC 2024
#60158: The description field for media doesn't automatically make paragraphs in
the generated code
------------------------------+----------------------------
Reporter: juliemoynat | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.6
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses: accessibility
------------------------------+----------------------------
Changes (by joedolson):
* keywords:
has-patch changes-requested needs-unit-tests needs-testing needs-
testing-info
=> has-patch commit
Comment:
I think that this patch is OK; I'm not convinced it needs unit tests, or
what those unit tests would actually be testing. There should be no change
in what HTML the field accepts or outputs, just a change in the editor
output.
I've modified the patch slightly to clarify the comment, update the
version, and clearly state that this only enables TinyMCE in the
attachment editing screen; the media modal would be a much bigger change,
and probably not worth the effort.
I also want to observe that there are other solutions to getting automatic
paragraphs in the description field, such as running `wpautop` on the
output of the field when it's rendered; and the description field accepts
HTML, so they can also be written directly into the text field.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60158#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list