[wp-trac] [WordPress Trac] #50675: Media: migrate the data from the attachment post of the parent image when saving an edited image
WordPress Trac
noreply at wordpress.org
Thu Jul 16 00:27:58 UTC 2020
#50675: Media: migrate the data from the attachment post of the parent image when
saving an edited image
--------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by azaozz):
This mainly concerns:
- `post_content` (image description).
- `post_excerpt` (image caption as saved in the DB).
- `_wp_attachment_image_alt` (alt text for the img tag as saved in the
DB).
Seems it may make sense to migrate the description and caption. Editing an
already used image may require new description, and migrating the old
description may be somewhat unexpected in these cases. On the other hand
it is still the same image...
Unsure about migrating the alt text though. According to
[https://www.w3.org/WAI/tutorials/images/decision-tree/ W3C WAI] the img
alt must be contextial. Even storing it in the DB is "questionable" when
inserting an already used image, see #47456.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50675#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list