Skip to content
Snippets Groups Projects
Commit 29d7925f authored by Mohammad Jangda's avatar Mohammad Jangda
Browse files

rm PUSH_SYNDICATION_ENVIRONMENT and related code

Not super easy to hook into so let's just remove it allow alternate ways
to hook in and override things.
parent 0cf9fb5e
No related branches found
No related tags found
No related merge requests found
...@@ -16,14 +16,7 @@ if ( ! defined( 'PUSH_SYNDICATE_KEY' ) ) ...@@ -16,14 +16,7 @@ if ( ! defined( 'PUSH_SYNDICATE_KEY' ) )
require_once ( dirname( __FILE__ ) . '/includes/class-wp-push-syndication-server.php' ); require_once ( dirname( __FILE__ ) . '/includes/class-wp-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' ) )
define( 'PUSH_SYNDICATION_ENVIRONMENT', 'WP' );
if ( defined( 'WP_CLI' ) && WP_CLI ) if ( defined( 'WP_CLI' ) && WP_CLI )
require_once( dirname( __FILE__ ) . '/includes/class-wp-cli.php' ); require_once( dirname( __FILE__ ) . '/includes/class-wp-cli.php' );
$push_syndication_server_class = PUSH_SYNDICATION_ENVIRONMENT . '_Push_Syndication_Server'; $push_syndication_server = new WP_Push_Syndication_Server;
$push_syndication_server = new $push_syndication_server_class();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment