[wp-trac] [WordPress Trac] #57810: Should wp_insert_post() function call 'wp_insert_post' action with 'update' equals true after creating post for the first time.

WordPress Trac noreply at wordpress.org
Sun Mar 12 02:44:54 UTC 2023


#57810: Should wp_insert_post() function call 'wp_insert_post' action with 'update'
equals true after creating post for the first time.
-------------------------------+------------------------------
 Reporter:  zenithcity         |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  6.1.1
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Changes (by zenithcity):

 * keywords:  reporter-feedback =>


Comment:

 Thank you removing the first attachment as requested, @ironprogrammer

 So, all plugins are disabled and using the latest WordPress default theme.
 I added a `var_dump('create: $update)` directly to where the `do_action`
 is fired and created a new post to test, the result is shown on the
 screenshot.

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


More information about the wp-trac mailing list