WordPress.org

Make WordPress Core

Changeset 11735


Ignore:
Timestamp:
07/21/09 23:10:34 (5 years ago)
Author:
ryan
Message:

Pings to the people. Return to pinging for updates to published posts. see #6698 for 2.8

Location:
branches/2.8/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-includes/comment.php

    r11733 r11735  
    13251325        foreach ( $trackbacks as $trackback ) 
    13261326            do_trackbacks($trackback); 
     1327 
     1328    //Do Update Services/Generic Pings 
     1329    generic_ping(); 
    13271330} 
    13281331 
     
    13861389            weblog_ping($service); 
    13871390    } 
    1388  
    1389     set_transient('generic_ping_last', time(), 1800); 
    13901391 
    13911392    return $post_id; 
  • branches/2.8/wp-includes/default-filters.php

    r11488 r11735  
    187187add_action('do_feed_atom', 'do_feed_atom', 10, 1); 
    188188add_action('do_pings', 'do_all_pings', 10, 1); 
    189 add_action('do_generic_ping', 'generic_ping', 10, 1); 
    190189add_action('do_robots', 'do_robots'); 
    191190add_action('sanitize_comment_cookies', 'sanitize_comment_cookies'); 
  • branches/2.8/wp-includes/post.php

    r11733 r11735  
    32753275            $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post->ID ) ), array( 'ID' => $post->ID ) ); 
    32763276        do_action('private_to_published', $post->ID);  // Deprecated, use private_to_publish 
    3277         // do generic pings once per half hour at most 
    3278         if ( !wp_next_scheduled('do_generic_ping') ) { 
    3279             $schedule = time(); 
    3280             $last_ping = get_transient('generic_ping_last'); 
    3281             if ($last_ping) { 
    3282               $schedule = max($schedule, $last_ping + 1800); 
    3283             } 
    3284             wp_schedule_single_event($schedule, 'do_generic_ping'); 
    3285         } 
    32863277    } 
    32873278 
Note: See TracChangeset for help on using the changeset viewer.