How are Posts saved?

View: New views
3 Messages — Rating Filter:   Alert me  

How are Posts saved?

by Matthew Kettlewell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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/


_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: How are Posts saved?

by Matthew Kettlewell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I figured out how posts are being saved, and it was my misunderstanding
of add_query_arg()

I'm new to wordpress core, so I may have a few oddball questions like
this.... to better understand core for plugin dev and possibly core
patches/enhancements.

is this the right forum to ask these sorts of questions?

Matt

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

http://www.BloggingEmergency.com/


Matthew Kettlewell wrote:

> 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...
>
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: How are Posts saved?

by scribu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 31, 2009 at 8:43 PM, Matthew Kettlewell <ceo@...>wrote:

> I'm new to wordpress core, so I may have a few oddball questions like
> this.... to better understand core for plugin dev and possibly core
> patches/enhancements.
>
> is this the right forum to ask these sorts of questions?
>

Yes, you're in the right place. Welcome!


--
http://scribu.net
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers