mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Process waiting pings a half hour after the last ping to avoid spamming ping sites. Don't make a ping wait if the last ping was more than half an hour ago. Props VoxPelli. fixes #6698 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11732 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1435,6 +1435,8 @@ function generic_ping($post_id = 0) {
|
||||
weblog_ping($service);
|
||||
}
|
||||
|
||||
set_transient('generic_ping_last', time(), 1800);
|
||||
|
||||
return $post_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user