Make WordPress Core

Ticket #2170: functions-post.php.diff

File functions-post.php.diff, 834 bytes (added by ryan, 18 years ago)

From http://blog.serv.idv.tw/2005/12/29/380/

Line 
1*** functions-post.php.orig     Thu Dec 29 14:35:43 2005
2--- functions-post.php  Thu Dec 29 14:38:39 2005
3***************
4*** 696,704 ****
5 
6        $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID = $post_id");
7        $to_ping = get_to_ping($post_id);
8        $pinged  = get_pung($post_id);
9!       if ( empty($to_ping) )
10                return;
11        if (empty($post->post_excerpt))
12                $excerpt = apply_filters('the_content', $post->post_content);
13        else
14--- 698,709 ----
15 
16        $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID = $post_id");
17        $to_ping = get_to_ping($post_id);
18        $pinged  = get_pung($post_id);
19!       if ( empty($to_ping) ) {
20!               $wpdb->query("UPDATE $wpdb->posts SET to_ping = '' WHERE ID = '$post_id'");
21                return;
22+       }
23        if (empty($post->post_excerpt))
24                $excerpt = apply_filters('the_content', $post->post_content);
25        else