[wp-hackers] Data on scheduled publish?

Ryan Bilesky rbilesky at gmail.com
Wed Feb 16 00:29:40 UTC 2011


idk what to say then, it probably is a bug, unless someone can confirm that
for some reason this is expected behavior.

On Tue, Feb 15, 2011 at 4:25 PM, Christopher Ross <cross at thisismyurl.com>wrote:

> Thanks Ryan, I thought of that but $post_id isn't set either.  What's
> really driving me mad is that the function is being triggered but not I
> can't find a way to identify the post :)
>
>
> On 2011-02-15, at 8:10 PM, Ryan Bilesky wrote:
>
> > idk why $post isn't set, might be a bug but thee might be a reason too,
> so
> > you might want to confirm that with someone else.  But as long as
> $post_id
> > is set you can use that with get_post();
> >
> > So you can to this
> >
> > function do_backup ($post_id, $post) {
> >       if (!isset($post)) {
> >              $post = get_post(intval($post_id));
> >       }
> >       my_backup($post);
> > }
>
>
>  __
>
> Christopher Ross
>
> http://christopherross.ca
> http://www.thisismyurl.com
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list