[wp-hackers] How are Posts saved?

Matthew Kettlewell ceo at kettlewell.net
Sat Oct 31 17:25:29 UTC 2009


I'm going through wp-admin/post.php to figure out how a post is saved.

The action appears to be 'editpost' which grabs the post_ID, calls 
redirect_post() and then wp_redirect() with an appended message  that 
the  file was saved.

I don't honestly understand how wp_redirect() is redirecting to post.php 
becauce in redirect_post() the location is set only to the appended 
message.  Is there a global var that I'm missing with the referrer 
information?

Where is the call to actually save the post?  I think I'm missing 
something...

-- 
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Matthew Kettlewell - aka "The Dominator"
O: 970-985-4192
C: 970-261-2684
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

http://www.BloggingEmergency.com/




More information about the wp-hackers mailing list