wp2.6 passing wrong post ids in the functions called by actions publish_post,
I have a plugin which I am using for adding thumbnails for each post.It adds a file type field to the post screen andn when the post is saved/created/published it stores the image file in a folder and does it’s entry in database.
I am using following actions
and the function save_post_image is written like
//perform some action
Now the real problem is,the $post_id contains the wrong id of the post which is passed by the action hook .
I wordpress 2.3 and 2.5 it was containing correct post id.
but in wordpress 2.6 the behavior is strange.If I am creating a post with id=21 then the passed variable contains $post_id=22,I don’t know where is the issue.Please help.
- The topic ‘wp2.6 passing wrong post ids in the functions called by actions publish_post,’ is closed to new replies.