Ticket #25073: 25073-9.patch
File 25073-9.patch, 3.0 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/misc.php
743 743 * 744 744 * @since 3.8 745 745 */ 746 function wp_ disable_heartbeat_suspend( $settings ) {746 function wp_heartbeat_set_suspension( $settings ) { 747 747 global $pagenow; 748 748 749 749 if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) { 750 $settings['suspen d'] = 'disable';750 $settings['suspension'] = 'disable'; 751 751 } 752 752 753 753 return $settings; 754 754 } 755 add_filter( 'heartbeat_settings', 'wp_ disable_heartbeat_suspend' );755 add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' ); -
src/wp-admin/js/inline-edit-post.js
352 352 }).ready( function() { 353 353 // Set the heartbeat interval to 15 sec. 354 354 if ( typeof wp !== 'undefined' && wp.heartbeat ) { 355 wp.heartbeat. setInterval( 15 );355 wp.heartbeat.interval( 15 ); 356 356 } 357 357 }); 358 358 -
src/wp-admin/js/post.js
377 377 378 378 // Set the heartbeat interval to 15 sec. if post lock dialogs are enabled 379 379 if ( typeof wp !== 'undefined' && wp.heartbeat && $('#post-lock-dialog').length ) { 380 wp.heartbeat. setInterval( 15 );380 wp.heartbeat.interval( 15 ); 381 381 } 382 382 383 383 // multi-taxonomies -
src/wp-includes/js/heartbeat.js
132 132 settings.screenId = options.screenId || 'front'; 133 133 } 134 134 135 if ( options.suspen d=== 'disable' ) {135 if ( options.suspension === 'disable' ) { 136 136 settings.suspendEnabled = false; 137 137 } 138 138 } … … 342 342 343 343 // Do this last, can trigger the next XHR if connection time > 5 sec. and newInterval == 'fast' 344 344 if ( newInterval ) { 345 setInterval( newInterval );345 interval( newInterval ); 346 346 } 347 347 }).fail( function( jqXHR, textStatus, error ) { 348 348 setErrorState( textStatus || 'unknown', jqXHR.status ); … … 605 605 * @param string ticks Used with speed = 'fast' or 5, how many ticks before the interval reverts back 606 606 * @return int Current interval in seconds 607 607 */ 608 function setInterval( speed, ticks ) {608 function interval( speed, ticks ) { 609 609 var interval, oldInerval = settings.tempInterval ? settings.tempInterval : settings.mainInterval; 610 610 611 611 if ( speed ) { … … 725 725 hasFocus: hasFocus, 726 726 connectNow: connectNow, 727 727 disableSuspend: disableSuspend, 728 setInterval: setInterval,728 interval: interval, 729 729 hasConnectionError: hasConnectionError, 730 730 enqueue: enqueue, 731 731 dequeue: dequeue,