Changeset 3380398
- Timestamp:
- 10/18/2025 06:35:12 AM (6 months ago)
- Location:
- fastcomments
- Files:
-
- 40 added
- 2 edited
-
tags/3.16.1 (added)
-
tags/3.16.1/.gitignore (added)
-
tags/3.16.1/LICENSE (added)
-
tags/3.16.1/README.md (added)
-
tags/3.16.1/README.txt (added)
-
tags/3.16.1/admin (added)
-
tags/3.16.1/admin/fastcomments-admin-advanced-settings-view.js (added)
-
tags/3.16.1/admin/fastcomments-admin-advanced-settings-view.php (added)
-
tags/3.16.1/admin/fastcomments-admin-manual-sync-view.js (added)
-
tags/3.16.1/admin/fastcomments-admin-manual-sync-view.php (added)
-
tags/3.16.1/admin/fastcomments-admin-setup-view.js (added)
-
tags/3.16.1/admin/fastcomments-admin-setup-view.php (added)
-
tags/3.16.1/admin/fastcomments-admin-sso-view.css (added)
-
tags/3.16.1/admin/fastcomments-admin-sso-view.js (added)
-
tags/3.16.1/admin/fastcomments-admin-sso-view.php (added)
-
tags/3.16.1/admin/fastcomments-admin-support-view.php (added)
-
tags/3.16.1/admin/fastcomments-admin-view.php (added)
-
tags/3.16.1/admin/fastcomments-admin.css (added)
-
tags/3.16.1/admin/fastcomments-admin.php (added)
-
tags/3.16.1/admin/images (added)
-
tags/3.16.1/admin/images/api.png (added)
-
tags/3.16.1/admin/images/crown.png (added)
-
tags/3.16.1/admin/images/css.png (added)
-
tags/3.16.1/admin/images/debugging.png (added)
-
tags/3.16.1/admin/images/download.png (added)
-
tags/3.16.1/admin/images/home.png (added)
-
tags/3.16.1/admin/images/logo-50.png (added)
-
tags/3.16.1/admin/images/logo.png (added)
-
tags/3.16.1/admin/images/settings.png (added)
-
tags/3.16.1/admin/images/support.png (added)
-
tags/3.16.1/admin/images/sync-status.png (added)
-
tags/3.16.1/admin/images/sync.png (added)
-
tags/3.16.1/core (added)
-
tags/3.16.1/core/FastCommentsIntegrationCore.php (added)
-
tags/3.16.1/core/FastCommentsWordPressIntegration.php (added)
-
tags/3.16.1/fastcomments-wordpress-plugin.php (added)
-
tags/3.16.1/public (added)
-
tags/3.16.1/public/fastcomments-public.php (added)
-
tags/3.16.1/public/fastcomments-widget-view.php (added)
-
tags/3.16.1/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/fastcomments-wordpress-plugin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fastcomments/trunk/README.txt
r3142080 r3380398 3 3 Tags: live comments, comments, comment spam, comment system, fast comments, live commenting 4 4 Requires at least: 4.6 5 Tested up to: 6. 6.26 Stable tag: 3.16. 05 Tested up to: 6.8.3 6 Stable tag: 3.16.1 7 7 Requires PHP: 5.2.5 8 8 License: GPLv2 or later … … 88 88 == Changelog == 89 89 90 = 3.16.1 = 91 * Prevent bots from submitting spam directly to the WP endpoint when the plugin is installed 92 90 93 = 3.16.0 = 91 94 * Improved compatibility with some other plugins like LearnDash LMS. -
fastcomments/trunk/fastcomments-wordpress-plugin.php
r3142085 r3380398 4 4 Plugin URI: https://fastcomments.com 5 5 Description: A live, fast, privacy-focused commenting system. 6 Version: 3.16. 06 Version: 3.16.1 7 7 Author: winrid @ FastComments 8 8 License: GPL-2.0+ … … 14 14 } 15 15 16 $FASTCOMMENTS_VERSION = 3.16 0;16 $FASTCOMMENTS_VERSION = 3.161; 17 17 18 18 require_once plugin_dir_path(__FILE__) . 'admin/fastcomments-admin.php'; … … 92 92 add_filter('wp_enqueue_scripts', 'fc_add_comment_count_scripts', 100); 93 93 add_filter('wp_footer', 'fc_add_comment_count_config', 100); 94 95 // Prevent spam bots from submitting to WordPress's native comment endpoints 96 add_filter('comments_open', 'fc_block_native_comments', 10, 2); 97 add_filter('rest_pre_insert_comment', 'fc_block_rest_comments', 10, 2); 98 } 99 100 // Block submissions to wp-comments-post.php 101 function fc_block_native_comments($open, $post_id) { 102 // When FastComments is active, close native WordPress comments to prevent bot spam 103 if (get_option('fastcomments_tenant_id')) { 104 return false; 105 } 106 return $open; 107 } 108 109 // Block REST API comment submissions 110 function fc_block_rest_comments($prepared_comment, $request) { 111 // When FastComments is active, block REST API comment submissions 112 if (get_option('fastcomments_tenant_id')) { 113 return new WP_Error( 114 'fastcomments_rest_blocked', 115 __('Comments must be submitted through FastComments.', 'fastcomments'), 116 array('status' => 403) 117 ); 118 } 119 return $prepared_comment; 94 120 } 95 121
Note: See TracChangeset
for help on using the changeset viewer.