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

git-svn-id: https://develop.svn.wordpress.org/trunk@21599 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-08-23 20:43:47 +00:00
parent 9905abe697
commit aead379f61
1 changed files with 1 additions and 1 deletions

View File

@ -1709,7 +1709,7 @@ function do_all_pings() {
function do_trackbacks($post_id) {
global $wpdb;
$post = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d", $post_id) );
$post = get_post( $post_id );
$to_ping = get_to_ping($post_id);
$pinged = get_pung($post_id);
if ( empty($to_ping) ) {