Changeset 2658501
- Timestamp:
- 01/16/2022 09:49:23 PM (4 years ago)
- Location:
- fastcomments
- Files:
-
- 37 added
- 2 edited
-
tags/3.10.3 (added)
-
tags/3.10.3/.gitignore (added)
-
tags/3.10.3/LICENSE (added)
-
tags/3.10.3/README.md (added)
-
tags/3.10.3/README.txt (added)
-
tags/3.10.3/admin (added)
-
tags/3.10.3/admin/fastcomments-admin-advanced-settings-view.js (added)
-
tags/3.10.3/admin/fastcomments-admin-advanced-settings-view.php (added)
-
tags/3.10.3/admin/fastcomments-admin-setup-view.js (added)
-
tags/3.10.3/admin/fastcomments-admin-setup-view.php (added)
-
tags/3.10.3/admin/fastcomments-admin-sso-view.css (added)
-
tags/3.10.3/admin/fastcomments-admin-sso-view.js (added)
-
tags/3.10.3/admin/fastcomments-admin-sso-view.php (added)
-
tags/3.10.3/admin/fastcomments-admin-support-view.php (added)
-
tags/3.10.3/admin/fastcomments-admin-view.php (added)
-
tags/3.10.3/admin/fastcomments-admin.css (added)
-
tags/3.10.3/admin/fastcomments-admin.php (added)
-
tags/3.10.3/admin/images (added)
-
tags/3.10.3/admin/images/api.png (added)
-
tags/3.10.3/admin/images/crown.png (added)
-
tags/3.10.3/admin/images/css.png (added)
-
tags/3.10.3/admin/images/debugging.png (added)
-
tags/3.10.3/admin/images/download.png (added)
-
tags/3.10.3/admin/images/home.png (added)
-
tags/3.10.3/admin/images/logo-50.png (added)
-
tags/3.10.3/admin/images/logo.png (added)
-
tags/3.10.3/admin/images/settings.png (added)
-
tags/3.10.3/admin/images/support.png (added)
-
tags/3.10.3/admin/images/sync.png (added)
-
tags/3.10.3/core (added)
-
tags/3.10.3/core/FastCommentsIntegrationCore.php (added)
-
tags/3.10.3/core/FastCommentsWordPressIntegration.php (added)
-
tags/3.10.3/fastcomments-wordpress-plugin.php (added)
-
tags/3.10.3/public (added)
-
tags/3.10.3/public/fastcomments-public.php (added)
-
tags/3.10.3/public/fastcomments-widget-view.php (added)
-
tags/3.10.3/uninstall.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/fastcomments-wordpress-plugin.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fastcomments/trunk/README.txt
r2656982 r2658501 4 4 Requires at least: 4.6 5 5 Tested up to: 5.8 6 Stable tag: 3.10. 26 Stable tag: 3.10.3 7 7 Requires PHP: 5.2.4 8 8 License: GPLv2 or later … … 57 57 = What does it cost to use FastComments? = 58 58 59 FastComments has three different tiers, the lowest level allowing a million page loads a month.59 FastComments has different tiers available. Whether you're an individual creator or a larger businesses, there's a tier for you. 60 60 See our pricing page here: https://fastcomments.com/traffic-pricing 61 61 … … 85 85 86 86 == Changelog == 87 88 = 3.10.3 = 89 * Comment count accuracy has been improved. 87 90 88 91 = 3.10.2 = -
fastcomments/trunk/fastcomments-wordpress-plugin.php
r2656982 r2658501 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.10. 26 Version: 3.10.3 7 7 Author: winrid @ FastComments 8 8 License: GPL-2.0+ … … 21 21 $fastcomments_public->setup_api_listeners(); // TODO able to do this without new()? 22 22 23 24 23 // Returns the FastComments embed comments template 25 function fc_comments_template() 26 { 24 function fc_comments_template() { 27 25 $path = plugin_dir_path(__FILE__) . 'public/fastcomments-widget-view.php'; 28 26 if (!file_exists($path)) { … … 32 30 } 33 31 32 // Returns the FastComments embed comments template 33 // This method takes more arguments, like post id, but we found it not to be reliable. 34 function fc_comment_count_template($text_no_comments = "") { 35 global $post; 36 $post_id = -1; 37 if (isset($post) && $post->ID) { 38 $post_id = $post->ID; 39 } 40 // we add opacity here to prevent flash of content when rendering the original text and then loading our script. We have a style override for users without JS. 41 return "<span class=\"fast-comments-count\" data-fast-comments-url-id=\"$post_id\" style=\"opacity: 0;\"'>$text_no_comments</span>"; 42 } 43 44 // Sets up the FastComments embed comment count script if needed. This is done this way, with wp_footer, to prevent loading an external script. 45 function fc_add_comment_count_scripts() { 46 global $post; 47 48 if (!isset($post) || is_singular()) { 49 return; 50 } 51 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); 54 } 55 56 // Sets up the FastComments embed comment count script if needed. This is done this way, with wp_footer, to prevent loading an external script. 57 function fc_add_comment_count_config() { 58 global $post; 59 60 if (!isset($post) || is_singular()) { 61 return; 62 } 63 64 $jsonFcConfig = json_encode(array( 65 "tenantId" => get_option('fastcomments_tenant_id') 66 )); 67 echo "<script>window.FastCommentsBulkCountConfig = $jsonFcConfig;</script>"; 68 echo "<noscript><style>.fast-comments-count { opacity: 1 !important; }</style></noscript>"; 69 } 70 34 71 // Comments can load as long as we have a tenant id. 35 if (get_option('fastcomments_tenant_id')) {72 if (get_option('fastcomments_tenant_id')) { 36 73 add_filter('comments_template', 'fc_comments_template', 100); 74 add_filter('comments_number', 'fc_comment_count_template', 100); 75 add_filter('wp_enqueue_scripts', 'fc_add_comment_count_scripts', 100); 76 add_filter('wp_footer', 'fc_add_comment_count_config', 100); 37 77 } 38 78 … … 44 84 $fastcomments->log('debug', 'End cron tick.'); 45 85 } 86 46 87 add_action('fastcomments_cron_hook', 'fastcomments_cron'); 47 88
Note: See TracChangeset
for help on using the changeset viewer.