mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Heartbeat:
- Bring back heartbeat.interval(). - Rename wp_disable_heartbeat_suspend() to wp_heartbeat_set_suspension(). - Rename the option for disabling suspension from options.suspend to options.suspension. Fixes #25073. git-svn-id: https://develop.svn.wordpress.org/trunk@26549 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -743,13 +743,13 @@ add_filter( 'heartbeat_received', 'wp_refresh_post_nonces', 10, 3 );
|
||||
*
|
||||
* @since 3.8
|
||||
*/
|
||||
function wp_disable_heartbeat_suspend( $settings ) {
|
||||
function wp_heartbeat_set_suspension( $settings ) {
|
||||
global $pagenow;
|
||||
|
||||
if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) {
|
||||
$settings['suspend'] = 'disable';
|
||||
$settings['suspension'] = 'disable';
|
||||
}
|
||||
|
||||
return $settings;
|
||||
}
|
||||
add_filter( 'heartbeat_settings', 'wp_disable_heartbeat_suspend' );
|
||||
add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );
|
||||
|
||||
Reference in New Issue
Block a user