Changeset 3384
- Timestamp:
- 12/31/2005 09:24:56 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/execute-pings.php
r3322 r3384 20 20 } 21 21 // Do Trackbacks 22 while ($trackback = $wpdb->get_row("SELECT ID FROM $wpdb->posts WHERE TRIM(to_ping) != '' AND post_status != 'draft' LIMIT 1")) { 23 echo "Trackback : $trackback->ID<br/>"; 24 do_trackbacks($trackback->ID); 22 $trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE TRIM(to_ping) != '' AND post_status != 'draft'"); 23 24 if (is_array($trackbacks) && count($trackbacks)) { 25 foreach ($trackbacks as $trackback ) { 26 echo "Trackback : $trackback->ID<br/>"; 27 do_trackbacks($trackback->ID); 28 } 25 29 } 26 30 } -
trunk/wp-includes/functions-post.php
r3378 r3384 698 698 $to_ping = get_to_ping($post_id); 699 699 $pinged = get_pung($post_id); 700 if ( empty($to_ping) ) 700 if ( empty($to_ping) ) { 701 $wpdb->query("UPDATE $wpdb->posts SET to_ping = '' WHERE ID = '$post_id'"); 701 702 return; 703 } 704 702 705 if (empty($post->post_excerpt)) 703 706 $excerpt = apply_filters('the_content', $post->post_content);
Note: See TracChangeset
for help on using the changeset viewer.