Ticket #6698: 6698.4.diff
| File 6698.4.diff, 915 bytes (added by Denis-de-Bernardy, 4 years ago) |
|---|
-
wp-includes/post.php
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 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'); 3278 if ( !wp_next_scheduled('do_generic_ping') && !get_transient('last_ping') ) { 3279 wp_schedule_single_event(time(), 'do_generic_ping'); 3280 // return false on the transient_last_ping hook to disable throttling 3281 set_transient('last_ping', time(), time() + 3600); 3282 } 3280 3283 } 3281 3284 3282 3285 // Always clears the hook in case the post status bounced from future to draft.
