Skip to content

Commit

Permalink
Always load the sync listener
Browse files Browse the repository at this point in the history
Helps to avoid edge cases where modifications happen but we don’t find out because the listener didn’t load.
  • Loading branch information
gravityrail committed Nov 1, 2016
1 parent 80d6d5e commit 838df8d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions sync/class.jetpack-sync-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,7 @@ static function init() {
*
* @param bool should we load sync listener code for this request
*/
if ( apply_filters( 'jetpack_sync_listener_should_load',
(
( isset( $_SERVER["REQUEST_METHOD"] ) && 'GET' !== $_SERVER['REQUEST_METHOD'] )
||
is_user_logged_in()
||
defined( 'PHPUNIT_JETPACK_TESTSUITE' )
||
defined( 'DOING_CRON' ) && DOING_CRON
)
) ) {
if ( apply_filters( 'jetpack_sync_listener_should_load', true ) ) {
self::initialize_listener();
}

Expand Down

0 comments on commit 838df8d

Please sign in to comment.