`delete_post` hook has off-by-1 error in `$postid` parameter
|Reported by:||meitar||Owned by:|
In WordPress 3.2, the delete_post hook seems to be passed the incorrect post ID. Specifically, if a post's ID is 5, then the functioned called by the delete_post hook is passed an integer value of 6, contradicting $_GET['post'] (of a string value of 5, in this example).
Attached to this ticket is a very crude plugin showing the problem. I have tested the same plugin against WordPress 3.1.4 and the issue is not visible there. To see the issue in action:
- Install the plugin & activate the plugin.
- Create a new post.
- Delete that post.
Is this a regression?