WordPress.org

Make WordPress Core

Changeset 21599


Ignore:
Timestamp:
08/23/12 20:43:47 (20 months ago)
Author:
ryan
Message:

Use get_post() instead of bare SQL in do_trackbacks(). see #21309

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r21597 r21599  
    17101710    global $wpdb; 
    17111711 
    1712     $post = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d", $post_id) ); 
     1712    $post = get_post( $post_id ); 
    17131713    $to_ping = get_to_ping($post_id); 
    17141714    $pinged  = get_pung($post_id); 
Note: See TracChangeset for help on using the changeset viewer.