[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
Sun Jul 19 21:18:11 UTC 2020


#50675: Media: migrate the data from the attachment post of the parent image when
saving an edited image
-------------------------------------+-------------------------------------
 Reporter:  azaozz                   |       Owner:  azaozz
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.5
Component:  Media                    |     Version:  trunk
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-unit-    |     Focuses:  accessibility, rest-
  tests                              |  api
-------------------------------------+-------------------------------------
Changes (by azaozz):

 * owner:  (none) => azaozz
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48510" 48510]:
 {{{
 #!CommitTicketReference repository="" revision="48510"
 Media: Migrate the data from the attachment post of the parent image when
 saving an edited image. Copy:
 - `post_title`,
 - `post_content` (image description),
 - `post_excerpt` (image caption as saved in the DB),
 - `_wp_attachment_image_alt` meta (alt text for the img tag as saved in
 the DB).

 Props spacedmonkey, joedolson, TimothyBlynJacobs, azaozz.
 Fixes #50675.
 }}}

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


More information about the wp-trac mailing list