Make WordPress Core


Ignore:
Timestamp:
11/14/2013 06:40:03 PM (11 years ago)
Author:
azaozz
Message:

Heartbeat: clean up code style, better naming, better code structure. Props carldanley, props evansolomon.
Changes:

  • Add connectNow() public method to trigger a connection immediately.
  • Remove the "skipping" when no data to send.
  • Change the default interval to 60 sec.
  • Fix resetting the next connection time when changing the interval.

See #25073.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r25868 r26169  
    11861186    $user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true );
    11871187
    1188     $time_window = apply_filters( 'wp_check_post_lock_window', 120 );
     1188    $time_window = apply_filters( 'wp_check_post_lock_window', 150 );
    11891189
    11901190    if ( $time && $time > time() - $time_window && $user != get_current_user_id() )
Note: See TracChangeset for help on using the changeset viewer.