Trackback only for published posts.
git-svn-id: https://develop.svn.wordpress.org/trunk@3521 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
609f602104
commit
d5c2312e67
|
@ -15,7 +15,7 @@ while ($enclosure = $wpdb->get_row("SELECT * FROM {$wpdb->posts}, {$wpdb->postme
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do Trackbacks
|
// Do Trackbacks
|
||||||
$trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7 AND post_status != 'draft'");
|
$trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7 AND post_status = 'publish'");
|
||||||
if ( is_array($trackbacks) ) {
|
if ( is_array($trackbacks) ) {
|
||||||
foreach ( $trackbacks as $trackback ) {
|
foreach ( $trackbacks as $trackback ) {
|
||||||
do_trackbacks($trackback->ID);
|
do_trackbacks($trackback->ID);
|
||||||
|
|
Loading…
Reference in New Issue