Changeset 2744374
- Timestamp:
- 06/17/2022 10:03:56 PM (4 years ago)
- Location:
- fastcomments
- Files:
-
- 40 added
- 13 edited
-
tags/3.12.0 (added)
-
tags/3.12.0/.gitignore (added)
-
tags/3.12.0/LICENSE (added)
-
tags/3.12.0/README.md (added)
-
tags/3.12.0/README.txt (added)
-
tags/3.12.0/admin (added)
-
tags/3.12.0/admin/fastcomments-admin-advanced-settings-view.js (added)
-
tags/3.12.0/admin/fastcomments-admin-advanced-settings-view.php (added)
-
tags/3.12.0/admin/fastcomments-admin-manual-sync-view.js (added)
-
tags/3.12.0/admin/fastcomments-admin-manual-sync-view.php (added)
-
tags/3.12.0/admin/fastcomments-admin-setup-view.js (added)
-
tags/3.12.0/admin/fastcomments-admin-setup-view.php (added)
-
tags/3.12.0/admin/fastcomments-admin-sso-view.css (added)
-
tags/3.12.0/admin/fastcomments-admin-sso-view.js (added)
-
tags/3.12.0/admin/fastcomments-admin-sso-view.php (added)
-
tags/3.12.0/admin/fastcomments-admin-support-view.php (added)
-
tags/3.12.0/admin/fastcomments-admin-view.php (added)
-
tags/3.12.0/admin/fastcomments-admin.css (added)
-
tags/3.12.0/admin/fastcomments-admin.php (added)
-
tags/3.12.0/admin/images (added)
-
tags/3.12.0/admin/images/api.png (added)
-
tags/3.12.0/admin/images/crown.png (added)
-
tags/3.12.0/admin/images/css.png (added)
-
tags/3.12.0/admin/images/debugging.png (added)
-
tags/3.12.0/admin/images/download.png (added)
-
tags/3.12.0/admin/images/home.png (added)
-
tags/3.12.0/admin/images/logo-50.png (added)
-
tags/3.12.0/admin/images/logo.png (added)
-
tags/3.12.0/admin/images/settings.png (added)
-
tags/3.12.0/admin/images/support.png (added)
-
tags/3.12.0/admin/images/sync-status.png (added)
-
tags/3.12.0/admin/images/sync.png (added)
-
tags/3.12.0/core (added)
-
tags/3.12.0/core/FastCommentsIntegrationCore.php (added)
-
tags/3.12.0/core/FastCommentsWordPressIntegration.php (added)
-
tags/3.12.0/fastcomments-wordpress-plugin.php (added)
-
tags/3.12.0/public (added)
-
tags/3.12.0/public/fastcomments-public.php (added)
-
tags/3.12.0/public/fastcomments-widget-view.php (added)
-
tags/3.12.0/uninstall.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/fastcomments-admin-advanced-settings-view.php (modified) (1 diff)
-
trunk/admin/fastcomments-admin-manual-sync-view.php (modified) (1 diff)
-
trunk/admin/fastcomments-admin-setup-view.php (modified) (4 diffs)
-
trunk/admin/fastcomments-admin-sso-view.php (modified) (1 diff)
-
trunk/admin/fastcomments-admin-support-view.php (modified) (2 diffs)
-
trunk/admin/fastcomments-admin-view.php (modified) (1 diff)
-
trunk/admin/fastcomments-admin.php (modified) (6 diffs)
-
trunk/core/FastCommentsWordPressIntegration.php (modified) (1 diff)
-
trunk/fastcomments-wordpress-plugin.php (modified) (3 diffs)
-
trunk/public/fastcomments-public.php (modified) (2 diffs)
-
trunk/public/fastcomments-widget-view.php (modified) (2 diffs)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fastcomments/trunk/README.txt
r2733525 r2744374 4 4 Requires at least: 4.6 5 5 Tested up to: 6.0 6 Stable tag: 3.1 1.16 Stable tag: 3.12.0 7 7 Requires PHP: 5.2.5 8 8 License: GPLv2 or later … … 37 37 - **JavaScript Not Required** to view or leave comments. 38 38 39 Speed up your WordPress installation with FastComments, by letting us render your comment threads instead of your WordPress servers! 40 39 41 == Installation == 40 42 … … 86 88 == Changelog == 87 89 90 = 3.12.0 = 91 * Support for keeping your data in the EU. 92 88 93 = 3.11.1 = 89 94 * WordPress 6 -
fastcomments/trunk/admin/fastcomments-admin-advanced-settings-view.php
r2613148 r2744374 1 1 <div id="fastcomments-admin"> 2 <a class="logo" href=" https://fastcomments.com" target="_blank">2 <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank"> 3 3 <img src="<?php echo plugin_dir_url(dirname(__FILE__)); ?>/admin/images/logo-50.png" alt="FastComments Logo" 4 4 title="FastComments Logo"> -
fastcomments/trunk/admin/fastcomments-admin-manual-sync-view.php
r2678152 r2744374 6 6 ?> 7 7 <div id="fastcomments-admin"> 8 <a class="logo" href=" https://fastcomments.com" target="_blank">8 <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank"> 9 9 <img src="<?php echo plugin_dir_url(dirname(__FILE__)); ?>/admin/images/logo-50.png" alt="FastComments Logo" 10 10 title="FastComments Logo"> -
fastcomments/trunk/admin/fastcomments-admin-setup-view.php
r2678152 r2744374 3 3 <h3>Let's get you setup.</h3> 4 4 <p>We'll go through a couple steps before FastComments is activated.</p> 5 6 <?php if (!get_option('fastcomments_site') || get_option('fastcomments_site') === 'https://fastcomments.com') { ?> 7 <h2>Where should we put your data?</h2> 8 <p>Continue without changing anything and we will store your data replicated in all data centers.</p> 9 10 Do you want to only keep your users' data in the EU? 11 <a class="button-primary button-in-eu" 12 href="?isEU=true" 13 target="_blank">I'm in the EU.</a> 14 <?php } else { ?> 15 <h2>Where should we put your data?</h2> 16 <p>✔ We will keep your data in the EU.</p> 17 18 <a class="button-primary button-not-in-eu" 19 href="?isEU=false" 20 target="_blank">I'm not in the EU.</a> 21 <?php } ?> 5 22 6 23 <?php if (!get_option('fastcomments_tenant_id')) { ?> … … 11 28 <h2>Do you have a FastComments Account?</h2> 12 29 <a class="button-primary button-has-account" 13 href=" https://fastcomments.com/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true"30 href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true" 14 31 target="_blank">Yes</a> 15 32 <a class="button-primary button-no-account" 16 href=" https://fastcomments.com/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=false"33 href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=false" 17 34 target="_blank">No</a> 18 35 <?php } else if (!get_option('fastcomments_setup')) { ?> … … 23 40 24 41 <a class="button-primary" 25 href=" https://fastcomments.com/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true"42 href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true" 26 43 target="_blank">Re-Run Setup</a> 27 44 <?php } else { ?> … … 33 50 34 51 <a class="button-primary" 35 href=" https://fastcomments.com/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true"52 href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true" 36 53 target="_blank">Re-Run Setup</a> 37 54 <?php } ?> -
fastcomments/trunk/admin/fastcomments-admin-sso-view.php
r2678152 r2744374 8 8 9 9 <div id="fastcomments-admin"> 10 <a class="logo" href=" https://fastcomments.com" target="_blank">10 <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank"> 11 11 <img src="<?php echo plugin_dir_url(dirname(__FILE__)); ?>/admin/images/logo-50.png" alt="FastComments Logo" 12 12 title="FastComments Logo"> -
fastcomments/trunk/admin/fastcomments-admin-support-view.php
r2678152 r2744374 1 1 <div id="fastcomments-admin"> 2 <a class="logo" href=" https://fastcomments.com" target="_blank">2 <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank"> 3 3 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/logo-50.png" alt="FastComments Logo" title="FastComments Logo"> 4 4 <span class="text">FastComments.com</span> … … 6 6 <h3>FastComments Direct Support</h3> 7 7 <p>Getting support for your FastComments account is simple. Simply go to <a 8 href=" https://fastcomments.com/auth/my-account/help" target="_blank">this page</a> and ask your8 href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/help" target="_blank">this page</a> and ask your 9 9 question. You'll need to create an account, which is free, to access the support form.</p> 10 10 -
fastcomments/trunk/admin/fastcomments-admin-view.php
r2678152 r2744374 1 1 <div id="fastcomments-admin"> 2 <a class="logo" href=" https://fastcomments.com" target="_blank">2 <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank"> 3 3 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/logo-50.png" alt="FastComments Logo" title="FastComments Logo"> 4 4 <span class="text">FastComments.com</span> 5 5 </a> 6 6 <div class="tiles"> 7 <a href=" https://fastcomments.com/auth/my-account/" target="_blank">7 <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/" target="_blank"> 8 8 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/home.png" alt="My FastComments Account" title="My FastComments Account"/> 9 9 <div>My Account</div> 10 10 </a> 11 <a href=" https://fastcomments.com/auth/my-account/moderate-comments" target="_blank">11 <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/moderate-comments" target="_blank"> 12 12 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/crown.png" alt="Moderate Comments" title="Moderate Comments"/> 13 13 <div>Moderate Comments</div> 14 14 </a> 15 <a href=" https://fastcomments.com/auth/my-account/customize-widget" target="_blank">15 <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/customize-widget" target="_blank"> 16 16 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/css.png" alt="Customize Comments" title="Customize Comments"/> 17 17 <div>Customize Comments</div> 18 18 </a> 19 <a href=" https://fastcomments.com/auth/my-account/manage-data/export" target="_blank">19 <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/manage-data/export" target="_blank"> 20 20 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/download.png" alt="Export Comments" title="Export Comments"/> 21 21 <div>Export Comments</div> 22 22 </a> 23 <a href=" https://fastcomments.com/auth/my-account/integrations/v1/setup?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true" target="_blank">23 <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/setup?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true" target="_blank"> 24 24 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/sync-status.png" alt="Check Integration Status" title="Check Integration Status"/> 25 25 <div>Check Integration Status</div> -
fastcomments/trunk/admin/fastcomments-admin.php
r2678152 r2744374 1 1 <?php 2 2 3 require_once plugin_dir_path(__FILE__) . '../public/fastcomments-public.php'; 3 4 require_once plugin_dir_path(__FILE__) . '../core/FastCommentsWordPressIntegration.php'; 4 5 $fastcomments = new FastCommentsWordPressIntegration(); … … 45 46 ); 46 47 48 $site = FastCommentsPublic::getSite(); 49 47 50 $fastcomments_moderate_node_args = array( 48 51 'parent' => 'fastcomments', 49 52 'id' => 'fastcomments_moderate', 50 53 'title' => 'Moderate', 51 'href' => 'https://fastcomments.com/auth/my-account/moderate-comments',54 'href' => "$site/auth/my-account/moderate-comments", 52 55 ); 53 56 … … 56 59 'id' => 'fastcomments_analytics', 57 60 'title' => 'Analytics', 58 'href' => 'https://fastcomments.com/auth/my-account/analytics',61 'href' => "$site/auth/my-account/analytics", 59 62 ); 60 63 … … 63 66 'id' => 'fastcomments_customize', 64 67 'title' => 'Customize', 65 'href' => 'https://fastcomments.com/auth/my-account/customize-widget',68 'href' => "$site/auth/my-account/customize-widget", 66 69 ); 67 70 … … 70 73 'id' => 'fastcomments_my_account', 71 74 'title' => 'My Account', 72 'href' => 'https://fastcomments.com/auth/my-account',75 'href' => "$site/auth/my-account", 73 76 ); 74 77 … … 134 137 'setup' => get_option('fastcomments_setup'), 135 138 'sync_token' => get_option('fastcomments_token'), 136 'sso_secret' => get_option('fastcomments_sso_key') 139 'sso_secret' => get_option('fastcomments_sso_key'), 140 'site' => FastCommentsPublic::getSite(), 141 'cdn' => FastCommentsPublic::getCDN() 137 142 ), 138 143 'wordpress' => array( -
fastcomments/trunk/core/FastCommentsWordPressIntegration.php
r2678152 r2744374 1 1 <?php 2 2 3 require(__DIR__ . '/FastCommentsIntegrationCore.php'); 3 require_once __DIR__ . '/../public/fastcomments-public.php'; 4 require __DIR__ . '/FastCommentsIntegrationCore.php'; 4 5 5 6 class FastCommentsWordPressIntegration extends FastCommentsIntegrationCore { 6 7 7 8 public function __construct() { 8 parent::__construct('wordpress'); 9 $host = FastCommentsPublic::getSite(); 10 parent::__construct('wordpress', $host); 9 11 } 10 12 -
fastcomments/trunk/fastcomments-wordpress-plugin.php
r2733525 r2744374 4 4 Plugin URI: https://fastcomments.com 5 5 Description: Live Comments, Fast. A comment system that will delight your users and developers. 6 Version: 3.1 1.16 Version: 3.12.0 7 7 Author: winrid @ FastComments 8 8 License: GPL-2.0+ … … 14 14 } 15 15 16 $FASTCOMMENTS_VERSION = 3.1 11;16 $FASTCOMMENTS_VERSION = 3.120; 17 17 18 18 require_once plugin_dir_path(__FILE__) . 'admin/fastcomments-admin.php'; … … 51 51 52 52 global $FASTCOMMENTS_VERSION; 53 wp_enqueue_script('fastcomments_widget_count', 'https://cdn.fastcomments.com/js/embed-widget-comment-count-bulk.min.js', array(), $FASTCOMMENTS_VERSION, true); 53 $cdn = FastCommentsPublic::getCDN(); 54 wp_enqueue_script('fastcomments_widget_count', "$cdn/js/embed-widget-comment-count-bulk.min.js", array(), $FASTCOMMENTS_VERSION, true); 54 55 } 55 56 -
fastcomments/trunk/public/fastcomments-public.php
r2678152 r2744374 83 83 $fastcomments = new FastCommentsWordPressIntegration(); 84 84 $token = $fastcomments->getSettingValue('fastcomments_token'); 85 $request_url = "https://fastcomments.com/integrations/v1/comments?token=$token"; 85 $site = FastCommentsPublic::getSite(); 86 $request_url = "$site/integrations/v1/comments?token=$token"; 86 87 if ($includeCount) { 87 88 $request_url .= '&includeCount=true'; … … 108 109 return new WP_REST_Response(array('status' => 'failed'), 500); 109 110 } 111 } 112 113 public static function getSite() { 114 return get_option('fastcomments_site', 'https://fastcomments.com'); 115 } 116 117 public static function getCDN() { 118 return get_option('fastcomments_cdn', 'https://cdn.fastcomments.com'); 110 119 } 111 120 -
fastcomments/trunk/public/fastcomments-widget-view.php
r2656916 r2744374 10 10 } else { 11 11 global $FASTCOMMENTS_VERSION; 12 wp_enqueue_script( 'fastcomments_widget_embed', 'https://cdn.fastcomments.com/js/embed-v2.min.js', array(), $FASTCOMMENTS_VERSION, false ); 12 $cdn = FastCommentsPublic::getCDN(); 13 $site = FastCommentsPublic::getSite(); 14 wp_enqueue_script( 'fastcomments_widget_embed', "$cdn/js/embed-v2.min.js", array(), $FASTCOMMENTS_VERSION, false ); 13 15 global $post; 14 16 $config = FastCommentsPublic::get_config_for_post($post); … … 42 44 $tenantIdEncoded = rawurlencode($config['tenantId']); 43 45 $urlEncoded = rawurlencode($config['url']); 44 $fastcomments_url = " https://fastcomments.com/ssr/comments?tenantId=$tenantIdEncoded&urlId=$urlId&url=$urlEncoded";46 $fastcomments_url = "$site/ssr/comments?tenantId=$tenantIdEncoded&urlId=$urlId&url=$urlEncoded"; 45 47 if ($config['sso']) { 46 48 $sso_query_string = rawurlencode(json_encode($config['sso'])); -
fastcomments/trunk/uninstall.php
r2613148 r2744374 16 16 delete_option( 'fastcomments_setup' ); 17 17 delete_option( 'fastcomments_log_level' ); 18 delete_option( 'fastcomments_site' ); 19 delete_option( 'fastcomments_cdn' ); 18 20 19 21 $fastcomments = new FastCommentsWordPressIntegration();
Note: See TracChangeset
for help on using the changeset viewer.