[wp-trac] [WordPress Trac] #47908: "post_updated" hook not working properly with Gutenberg
WordPress Trac
noreply at wordpress.org
Wed Aug 21 09:35:36 UTC 2019
#47908: "post_updated" hook not working properly with Gutenberg
--------------------------+------------------------------
Reporter: giuse | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.2.2
Severity: critical | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by donmhico):
Hello @giuse,
Thank you for the bug report. I tried to do some investigating and what I
found out is that when doing an "Update" using Gutenberg the
`post_updated` action which is supposedly just to fire once is firing
twice. The first time provides the correct `$post_after` and
`$post_before`. The second time, both variables has the same values, most
probably because on the 2nd fire, no changes happened.
This bug might be related to this as well -
https://github.com/WordPress/gutenberg/issues/11976.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47908#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list