[wp-trac] [WordPress Trac] #46441: [WordPress - 5.1] Can't get categories after publishing the post first time on using "transition_post_status" action
WordPress Trac
noreply at wordpress.org
Tue Mar 19 23:36:13 UTC 2019
#46441: [WordPress - 5.1] Can't get categories after publishing the post first time
on using "transition_post_status" action
--------------------------+------------------------
Reporter: malayladu | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: REST API | Version: 5.0
Severity: normal | Resolution: duplicate
Keywords: needs-patch | Focuses:
--------------------------+------------------------
Changes (by peterwilsoncc):
* status: new => closed
* version: 5.1 => 5.0
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
Hi @malayladu and welcome to trac!
This is due to the issue detailed in #45114, post meta 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/46441#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list