[wp-trac] [WordPress Trac] #46566: get_post_thumbnail() is not working with transition_post_status hook

WordPress Trac noreply at wordpress.org
Tue Mar 19 23:37:41 UTC 2019


#46566: get_post_thumbnail() is not working with transition_post_status hook
-----------------------------+------------------------
 Reporter:  ratnaraju        |       Owner:  (none)
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Post Thumbnails  |     Version:  5.0
 Severity:  critical         |  Resolution:  duplicate
 Keywords:  needs-codex      |     Focuses:
-----------------------------+------------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * version:  5.1 => 5.0
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi @ratnaraju and welcome to trac!

 This is due to the issue detailed in #45114, post meta (included featured
 images) and terms (tags, categories, custom taxonomies) are not updated
 until after `wp_update_post()` runs so the details are not available when
 saving via the REST API, which the new editor uses.

 Some ideas have been presented but a way forward hasn't been decided yet,
 I am afraid.

 I'm marking this ticket as duplicate so discussion can continue in one
 place on #45114.

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


More information about the wp-trac mailing list