[wp-trac] [WordPress Trac] #56501: wp_after_insert_post hook, $post_before and $post showing same values

WordPress Trac noreply at wordpress.org
Fri Sep 2 15:14:28 UTC 2022


#56501: wp_after_insert_post hook, $post_before and $post showing same values
--------------------------+------------------------------
 Reporter:  wpfed         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  5.6
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * version:  6.0.2 => 5.6


Old description:

> wp_after_insert_post hook, $post_before and $post showing same values.
>
> WordPress 6.0.2
> Gutenberg 14.0.2
> PHP 7.4.28
> Windows 10
> Chrome
>
> According to this:
> https://core.trac.wordpress.org/changeset/49732
>
> It should "Pass the previous state of the post as a parameter to the
> wp_after_insert_post hook"

New description:

 wp_after_insert_post hook, $post_before and $post showing same values.

 WordPress 6.0.2
 Gutenberg 14.0.2
 PHP 7.4.28
 Windows 10
 Chrome

 According to this: [49732]

 It should "Pass the previous state of the post as a parameter to the
 wp_after_insert_post hook"

--

Comment:

 Hi there, thanks for the ticket!

 Appears to be introduced in [49731] for WordPress 5.6, setting the version
 accordingly.

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


More information about the wp-trac mailing list