mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Use get_post() instead of bare SQL in do_trackbacks(). see #21309
git-svn-id: http://core.svn.wordpress.org/trunk@21599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
18a1783423
commit
bd94583aaf
@ -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…
x
Reference in New Issue
Block a user