From 8b24803d866f2aa8d1a3133e6a822bcda5b753fb Mon Sep 17 00:00:00 2001 From: Simon Costea Date: Wed, 14 Oct 2026 10:55:07 +0300 Subject: [PATCH 1/2] Declare the WordPress and PHP versions bcc-login needs package.json said WordPress 3.0 and PHP 5.3, so the updater offered new versions to sites they break. The plugin's scripts need WordPress 6.6 (react-jsx-runtime) and its PHP needs 7.4 (typed properties). The updater now also accepts a site that runs exactly the required version. Co-Authored-By: Claude Opus 5.5 (1M context) --- plugins/bcc-login/bcc-login.php | 2 ++ plugins/bcc-login/includes/class-bcc-login-updater.php | 5 +++-- plugins/bcc-login/package.json | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/bcc-login/bcc-login.php b/plugins/bcc-login/bcc-login.php index 773f96d..239fc47 100644 --- a/plugins/bcc-login/bcc-login.php +++ b/plugins/bcc-login/bcc-login.php @@ -6,6 +6,8 @@ * Version: 1.2.13 * Author: BCC IT * License: GPL2 + * Requires at least: 6.6 + * Requires PHP: 7.4 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/plugins/bcc-login/includes/class-bcc-login-updater.php b/plugins/bcc-login/includes/class-bcc-login-updater.php index ea76990..ef41be6 100644 --- a/plugins/bcc-login/includes/class-bcc-login-updater.php +++ b/plugins/bcc-login/includes/class-bcc-login-updater.php @@ -154,8 +154,9 @@ public function update( $transient ) { if( $remote && version_compare( $this->version, $remote->version, '<' ) - && version_compare( $remote->requires, get_bloginfo( 'version' ), '<' ) - && version_compare( $remote->requires_php, PHP_VERSION, '<' ) + // At least the required versions: WordPress reports x.y.0 releases as just x.y. + && version_compare( $remote->requires, get_bloginfo( 'version' ), '<=' ) + && version_compare( $remote->requires_php, PHP_VERSION, '<=' ) ) { $res->new_version = $remote->version; $res->tested = $remote->tested; diff --git a/plugins/bcc-login/package.json b/plugins/bcc-login/package.json index faacfea..950f58e 100644 --- a/plugins/bcc-login/package.json +++ b/plugins/bcc-login/package.json @@ -5,9 +5,9 @@ "slug": "bcc-login", "author": "BCC Code", "author_profile": "https://github.com/bcc-code", - "requires": "3.0", + "requires": "6.6", "tested": "5.8", - "requires_php": "5.3", + "requires_php": "7.4", "last_updated": "2026-10-13 12:39:21", "sections": { "description": "BCC Login", From 6f6b673c466197f89df6f6424752c707db0f612b Mon Sep 17 00:00:00 2001 From: Simon Costea Date: Wed, 14 Oct 2026 13:37:57 +0300 Subject: [PATCH 2/2] Address review: say the plugin is tested up to WordPress 7.0 "tested" was still 5.8, below the new minimum of 6.6, so WordPress would call the plugin untested on every version it supports. It ran on WordPress 7.0.2 in the tests of these changes. Co-Authored-By: Claude Opus 5.5 (1M context) --- plugins/bcc-login/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bcc-login/package.json b/plugins/bcc-login/package.json index 97f28ee..6875695 100644 --- a/plugins/bcc-login/package.json +++ b/plugins/bcc-login/package.json @@ -6,7 +6,7 @@ "author": "BCC Code", "author_profile": "https://github.com/bcc-code", "requires": "6.6", - "tested": "5.8", + "tested": "7.0", "requires_php": "7.4", "last_updated": "2026-10-14 09:11:45", "sections": {