[wp-trac] [WordPress Trac] #58416: Media Title field should soft wrap in Media Modal: For better readability/editing of long titles.

WordPress Trac noreply at wordpress.org
Wed Jun 7 19:34:49 UTC 2023


#58416: Media Title field should soft wrap in Media Modal: For better
readability/editing of long titles.
-------------------------------------------------+-------------------------
 Reporter:  abitofmind                           |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Media                                |     Version:  3.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-screenshots has-       |     Focuses:
  testing-info needs-testing needs-unit-tests    |  administration
-------------------------------------------------+-------------------------

Comment (by joedolson):

 1) The state management in the media modal is persistent as long as you're
 in the same session. If you reload the screen, however, it'll show you the
 saved version. It's only persistent locally; that version is never saved.

 2) It won't be shown elsewhere with line breaks, as it's never been saved
 that way.

 3) Line breaks need to be stripped out for backwards compatibility,
 because historically this field was used for image title attributes and
 there are still themes and plugins out there that expect this. I don't
 think we should change the structure of the data, particularly given that
 it's usually not front-end facing content. I don't see any reason to
 change the limits on length; it's stored the same way as any post title,
 and has the same limits. (65,535 characters).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58416#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list