[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:51:06 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):

 * Attachment "Screenshot 2023-03-12 034657.png" added.

 Added var_dump to inspect value of $update in do_action( 'wp_insert_post',
 $post_ID, $post, $update );

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


More information about the wp-trac mailing list