Bug in delete_post handling, invalid id
-
I was reviewing the code for JetPack and found the following code in
/jetpack/jetpack.php
, Jetpack 2.0.4, line 4063:function delete_post_action( $post_id ) { $post = get_post( $post_id ); if ( !$post ) { return $this->register( 'delete_post', (int) $id ); } $this->transition_post_status_action( 'delete', $post->post_status, $post ); }
Note that the call to
$this->register
includes an undeclared variable$id
, I believe this should be$post_id
.Hope this helps,
Cheers,
Dean.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bug in delete_post handling, invalid id’ is closed to new replies.