Skip to content

Commit

Permalink
Merge pull request #5476 from Automattic/fix/load-listener-always
Browse files Browse the repository at this point in the history
Always load the sync listener
  • Loading branch information
gravityrail committed Nov 1, 2016
2 parents 80d6d5e + 838df8d commit c64473d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions sync/class.jetpack-sync-actions.php
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 c64473d

Please sign in to comment.