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:
parent
9905abe697
commit
aead379f61
@ -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) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user