[wp-hackers] Data on scheduled publish?

Dion Hulse (dd32) wordpress at dd32.id.au
Wed Feb 16 00:33:25 UTC 2011


You're going to have to include more information/code here..

What is that function hooked to to start with?

On Wed, 16 Feb 2011 11:29:40 +1100, Ryan Bilesky <rbilesky at gmail.com>  
wrote:

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


-- 
Dion Hulse / dd32
Contact:
  e: contact at dd32.id.au
  Web: http://dd32.id.au/


More information about the wp-hackers mailing list