Fix var name typo

git-svn-id: http://svn.automattic.com/wordpress/trunk@12222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-11-19 17:55:23 +00:00
parent 101751921b
commit 2892919a51

View File

@ -1237,9 +1237,9 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
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 ));
do_action( 'deleted_post', $post_id );
do_action( 'deleted_post', $postid );
if ( 'page' == $post->post_type ) {
clean_page_cache($postid);