From a4666b90b20e698f51aea81622ad3f1e0c35353f Mon Sep 17 00:00:00 2001 From: Anh Tran Date: Fri, 17 May 2024 14:31:55 +0700 Subject: [PATCH] Version 2.8.3 --- falcon.php | 2 +- readme.txt | 11 ++++++++--- src/Security.php | 6 +++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/falcon.php b/falcon.php index 093e4fd..7ba94d1 100644 --- a/falcon.php +++ b/falcon.php @@ -3,7 +3,7 @@ * Plugin Name: Falcon * Plugin URI: https://elightup.com * Description: WordPress optimizations & tweaks - * Version: 2.8.2 + * Version: 2.8.3 * Author: eLightUp * Author URI: https://elightup.com * License: GPL2+ diff --git a/readme.txt b/readme.txt index 515bb18..4f61be5 100644 --- a/readme.txt +++ b/readme.txt @@ -1,9 +1,9 @@ === Falcon - WordPress Optimizations & Tweaks === -Contributors: elightup, rilwis, truongwp +Contributors: elightup, rilwis, truongwp, paracetamol27 Tags: optimize, performance, speed, tweaks, admin Requires at least: 5.9 -Tested up to: 6.4.3 -Stable tag: 2.8.2 +Tested up to: 6.5.3 +Stable tag: 2.8.3 Requires PHP: 7.4 License: GPLv2 or later @@ -105,6 +105,11 @@ Go to *Dashboard | Plugins | Add New* and search for **Falcon**. Then install an == Changelog == += 2.8.3 - 2024-05-17 = +- Disable XML-RPC methods +- Fix: activation error on ajax request +- Update fix word disable detailed login errors + = 2.8.2 - 2024-03-17 = - Add a link to the settings page in the plugin meta row - Auto redirect to the settings page after activation diff --git a/src/Security.php b/src/Security.php index 435b790..8c8a26e 100644 --- a/src/Security.php +++ b/src/Security.php @@ -4,7 +4,7 @@ use WP_Error; class Security extends Base { - protected $features = [ + protected $features = [ 'no_rest_api', 'no_xmlrpc', 'no_login_errors', @@ -46,7 +46,7 @@ public function restrict_upload(): void { } public function restrict_upload_mimes(): array { - return [ + return [ 'jpg|jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', @@ -68,7 +68,7 @@ public function block_ai_bots(): void { * @link https://neil-clarke.com/block-the-bots-that-feed-ai-models-by-scraping-your-website/ */ public function block_ai_bots_in_robots_txt(): void { - $user_agents = [ + $user_agents = [ 'CCBot', 'ChatGPT-User', 'GPTBot',