Fix var name typo

git-svn-id: https://develop.svn.wordpress.org/trunk@12222 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-11-19 17:55:23 +00:00
parent 0fa56163c8
commit c210190ec9
1 changed files with 2 additions and 2 deletions

View File

@ -1237,9 +1237,9 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
do_action( 'deleted_postmeta', $post_meta_ids ); do_action( 'deleted_postmeta', $post_meta_ids );
} }
do_action( 'delete_post', $post_id ); do_action( 'delete_post', $postid );
$wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->posts WHERE ID = %d", $postid )); $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->posts WHERE ID = %d", $postid ));
do_action( 'deleted_post', $post_id ); do_action( 'deleted_post', $postid );
if ( 'page' == $post->post_type ) { if ( 'page' == $post->post_type ) {
clean_page_cache($postid); clean_page_cache($postid);