2013-03-26 23:29:55 -07:00
|
|
|
<?php
|
2016-06-10 13:33:51 -07:00
|
|
|
/**
|
2016-06-12 14:42:59 -07:00
|
|
|
* Plugin Name: WP-Discourse
|
|
|
|
* Description: Use Discourse as a community engine for your WordPress blog
|
2021-05-11 15:31:24 -07:00
|
|
|
* Version: 2.2.4
|
2016-09-13 13:27:59 -07:00
|
|
|
* Author: Discourse
|
2016-06-12 14:42:59 -07:00
|
|
|
* Text Domain: wp-discourse
|
|
|
|
* Domain Path: /languages
|
|
|
|
* Author URI: https://github.com/discourse/wp-discourse
|
|
|
|
* Plugin URI: https://github.com/discourse/wp-discourse
|
|
|
|
* GitHub Plugin URI: https://github.com/discourse/wp-discourse
|
|
|
|
*
|
|
|
|
* @package WPDiscourse
|
2016-06-10 13:33:51 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** Copyright 2014 Civilized Discourse Construction Kit, Inc (team@discourse.org)
|
2016-06-12 14:42:59 -07:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2016-06-10 13:33:51 -07:00
|
|
|
*/
|
2014-12-22 12:10:40 +08:00
|
|
|
|
2015-01-06 11:46:02 -06:00
|
|
|
define( 'WPDISCOURSE_PATH', plugin_dir_path( __FILE__ ) );
|
2016-02-20 13:10:38 -05:00
|
|
|
define( 'WPDISCOURSE_URL', plugins_url( '', __FILE__ ) );
|
2017-10-12 15:41:59 -07:00
|
|
|
define( 'MIN_WP_VERSION', '4.7' );
|
2020-11-11 10:54:51 -08:00
|
|
|
define( 'MIN_PHP_VERSION', '5.6.0' );
|
2021-05-11 15:31:24 -07:00
|
|
|
define( 'WPDISCOURSE_VERSION', '2.2.4' );
|
2015-01-06 11:46:02 -06:00
|
|
|
|
2019-10-27 13:42:52 -05:00
|
|
|
require_once WPDISCOURSE_PATH . 'lib/plugin-utilities.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/template-functions.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/utilities.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/discourse.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/discourse-comment.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/discourse-publish.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/sso-provider/sso.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/sso-provider/discourse-sso.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/webhook.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/sync-discourse-user.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/sync-discourse-topic.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/email-notification.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/sso-client/sso-client-base.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/wordpress-email-verification.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/discourse-comment-formatter.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/sso-client/nonce.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/sso-client/client.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/sso-client/query-redirect.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/shortcodes/sso-client.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'templates/html-templates.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'admin/discourse-sidebar/discourse-sidebar.php';
|
2021-05-11 15:31:24 -07:00
|
|
|
require_once WPDISCOURSE_PATH . 'vendor/autoload.php';
|
|
|
|
require_once WPDISCOURSE_PATH . 'lib/logs/logger.php';
|
2019-10-27 13:42:52 -05:00
|
|
|
require_once WPDISCOURSE_PATH . 'admin/admin.php';
|
2017-02-07 02:33:22 -08:00
|
|
|
|
2018-03-01 15:02:24 -08:00
|
|
|
new WPDiscourse\Discourse\Discourse();
|
2017-06-24 16:13:16 -07:00
|
|
|
$discourse_email_notification = new WPDiscourse\EmailNotification\EmailNotification();
|
2018-11-23 12:54:29 -08:00
|
|
|
$discourse_publish = new WPDiscourse\DiscoursePublish\DiscoursePublish( $discourse_email_notification );
|
2019-02-10 21:29:51 -08:00
|
|
|
new WPDiscourse\Admin\DiscourseSidebar( $discourse_publish );
|
2017-11-28 15:55:35 -08:00
|
|
|
$discourse_comment_formatter = new WPDiscourse\DiscourseCommentFormatter\DiscourseCommentFormatter();
|
|
|
|
new WPDiscourse\DiscourseComment\DiscourseComment( $discourse_comment_formatter );
|
2018-02-19 11:03:39 -08:00
|
|
|
new WPDiscourse\WordPressEmailVerification\WordPressEmailVerification( 'discourse_email_verification_key', 'discourse' );
|
|
|
|
new WPDiscourse\DiscourseSSO\DiscourseSSO();
|
2019-08-07 12:08:37 -07:00
|
|
|
new WPDiscourse\SyncDiscourseUser\SyncDiscourseUser();
|
|
|
|
new WPDiscourse\SyncDiscourseTopic\SyncDiscourseTopic();
|
2018-03-01 15:02:24 -08:00
|
|
|
new WPDiscourse\SSOClient\Client();
|
|
|
|
new WPDiscourse\SSOClient\QueryRedirect();
|
|
|
|
new WPDiscourse\SSOClient\SSOClientShortcode();
|