forked from Automattic/syndication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
push-syndication.php
40 lines (31 loc) · 1.23 KB
/
push-syndication.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Plugin Name: Syndication
* Plugin URI: http://wordpress.org/extend/plugins/push-syndication/
* Description: Syndicate content to and from your sites
* Version: 2.0
* Author: Automattic
* Author URI: http://automattic.com
* License: GPLv2 or later
*/
define( 'SYNDICATION_VERSION', 2.0 );
if ( ! defined( 'PUSH_SYNDICATE_KEY' ) )
define( 'PUSH_SYNDICATE_KEY', 'PUSH_SYNDICATE_KEY' );
/**
* Load syndication logger
*/
require_once( dirname( __FILE__ ) . '/includes/class-syndication-logger.php' );
Syndication_Logger::init();
require_once( dirname( __FILE__ ) . '/includes/class-wp-push-syndication-server.php' );
if ( defined( 'WP_CLI' ) && WP_CLI )
require_once( dirname( __FILE__ ) . '/includes/class-wp-cli.php' );
$push_syndication_server = new WP_Push_Syndication_Server;
// Create the event counter.
require __DIR__ . '/includes/class-syndication-event-counter.php';
new Syndication_Event_Counter();
// Create the site failure monitor.
require __DIR__ . '/includes/class-syndication-site-failure-monitor.php';
new Syndication_Site_Failure_Monitor();
// Create the site auto retry functionality
require __DIR__ . '/includes/class-syndication-site-auto-retry.php';
new Failed_Syndication_Auto_Retry();