From 747fb9fda3743d44930e67e1f5f14f48f4788ad0 Mon Sep 17 00:00:00 2001 From: Mohammad Jangda <batmoo@gmail.com> Date: Sat, 29 Sep 2012 14:25:53 -0400 Subject: [PATCH] Load wpcom helper based on a filter --- push-syndication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/push-syndication.php b/push-syndication.php index 16b9cdc..f709836 100644 --- a/push-syndication.php +++ b/push-syndication.php @@ -13,7 +13,7 @@ License: GPLv2 or later **************************************************************************/ require_once ( dirname( __FILE__ ) . '/includes/class-wp-push-syndication-server.php' ); -if( file_exists( dirname( __FILE__ ) . '/includes/class-wpcom-push-syndication-server.php' ) ) +if( apply_filters( 'syn_use_async_jobs', false ) ) require_once ( dirname( __FILE__ ) . '/includes/class-wpcom-push-syndication-server.php' ); if ( !defined( 'PUSH_SYNDICATION_ENVIRONMENT' ) ) -- GitLab