Fix var name typo
git-svn-id: https://develop.svn.wordpress.org/trunk@12222 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0fa56163c8
commit
c210190ec9
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue