[wp-trac] [WordPress Trac] #41445: post_parent can prevent media from embedding correctly

WordPress Trac noreply at wordpress.org
Wed May 20 06:51:46 UTC 2020


#41445: post_parent can prevent media from embedding correctly
-------------------------------------------------+-------------------------
 Reporter:  loboyle                              |       Owner:
                                                 |  adamsilverstein
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  REST API                             |     Version:  4.9.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing dev-         |     Focuses:  rest-api
  feedback needs-unit-tests                      |
-------------------------------------------------+-------------------------

Comment (by galbaras):

 This seems to indicate a problem of WordPress not updating media-to-post
 attachment information when a post changes status to/from "publish".

 Basically, if a post is trashed, it's incorrect to show its embedded
 images as attached to it. If WordPress updated media records with the
 deletion, there would not be an API issues.

 Conversely, if a deleted post is reinstated, its embedded images should be
 re-attached to it.

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


More information about the wp-trac mailing list