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

WordPress Trac noreply at wordpress.org
Fri Mar 25 16:21:25 UTC 2022


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

Comment (by Krstarica):

 @galbaras has a point. There are several ways media can be handled:
 1) Upload media during post editing
 2) Add existing media in the new post
 3) Upload media using Media Library, then use it in the post
 4) Reference existing media using custom field/plugin

 WordPress creates relationship between media and post for (1) scenario
 only. This should be definitely reviewed (in the new ticket?)

 In the meantime we should probably completely remove post_parent check,
 because we don't have a clue whether media is added to the post using (2),
 (3) and (4) scenario.

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


More information about the wp-trac mailing list