[wp-trac] [WordPress Trac] #23759: Pass $update to save_post and wp_insert_post actions

WordPress Trac noreply at wordpress.org
Thu Mar 14 10:30:24 UTC 2013

#23759: Pass $update to save_post and wp_insert_post actions
 Reporter:  alex-ye      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Post Types   |     Version:  3.5.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |

Comment (by alex-ye):

 Replying to [comment:3 SergeyBiryukov]:
 > > For now it's hard to check if the post is updated or publish for the
 first time
 > Post status transition actions can be used as a workaround: [[BR]]
 > http://codex.wordpress.org/Post_Status_Transitions
 > Related: #21450
 Yes it could be used , but Post_Status_Transitions it's different form
 what I ask , especially when you want all things in one function I
 currently check $_POST['update'] in the back-end , but what about when you
 make some staff in the front-end ...

 I read the Related ticket but and I think we cant make the both in the
 core :)

Ticket URL: <http://core.trac.wordpress.org/ticket/23759#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list