mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Fix var name typo
git-svn-id: http://svn.automattic.com/wordpress/trunk@12222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
101751921b
commit
2892919a51
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user