Changeset 11733
- Timestamp:
- 07/21/2009 07:45:16 PM (12 years ago)
- Location:
- branches/2.8/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-includes/comment.php
r11450 r11733 1387 1387 } 1388 1388 1389 set_transient('generic_ping_last', time(), 1800); 1390 1389 1391 return $post_id; 1390 1392 } -
branches/2.8/wp-includes/post.php
r11579 r11733 3275 3275 $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post->ID ) ), array( 'ID' => $post->ID ) ); 3276 3276 do_action('private_to_published', $post->ID); // Deprecated, use private_to_publish 3277 // do generic pings once per hour at most 3278 if ( !wp_next_scheduled('do_generic_ping') ) 3279 wp_schedule_single_event(time() + 3600, 'do_generic_ping'); 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 } 3280 3286 } 3281 3287
Note: See TracChangeset
for help on using the changeset viewer.