From 838df8db5f132a7d7d93a2e90092c1e824433276 Mon Sep 17 00:00:00 2001 From: Daniel Walmsley Date: Tue, 1 Nov 2016 11:54:42 -0700 Subject: [PATCH] Always load the sync listener MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Helps to avoid edge cases where modifications happen but we don’t find out because the listener didn’t load. --- sync/class.jetpack-sync-actions.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sync/class.jetpack-sync-actions.php b/sync/class.jetpack-sync-actions.php index b78f977fa0dad..17881b6366c45 100644 --- a/sync/class.jetpack-sync-actions.php +++ b/sync/class.jetpack-sync-actions.php @@ -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(); }