[wp-trac] [WordPress Trac] #5815: Add an action just prior to updating an edited post

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 11 07:19:50 GMT 2008


#5815: Add an action just prior to updating an edited post
-------------------------+--------------------------------------------------
 Reporter:  tellyworth   |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.6      
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
 This patch adds a new 'pre_post_update' action that runs just prior to
 saving an edited post.

 Sample scenario: a plugin needs to notify an external web service of
 changes to posts.  By the time edit_post and transition status actions
 run, the contents of the post prior to saving are no longer known -
 including the old URL, which may have changed if post_status or post_name
 were edited.  The new action gives plugins a chance to fetch any post
 fields they need before they're changed.

 If there's a better way to do it I'm happy to hear of it.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5815>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list