WordPress.org

Make WordPress Core

Ticket #11174: post.php.diff

File post.php.diff, 498 bytes (added by sirzooro, 9 years ago)
  • post.php

    old new  
    12371237                do_action( 'deleted_postmeta', $post_meta_ids );
    12381238        }
    12391239
    1240         do_action( 'delete_post', $post_id );
     1240        do_action( 'delete_post', $postid );
    12411241        $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->posts WHERE ID = %d", $postid ));
    1242         do_action( 'deleted_post', $post_id );
     1242        do_action( 'deleted_post', $postid );
    12431243
    12441244        if ( 'page' == $post->post_type ) {
    12451245                clean_page_cache($postid);