From 94854bcbb8b9e1879fa1b37c53c33a93e81287f9 Mon Sep 17 00:00:00 2001 From: Utsav Patel Date: Thu, 18 Dec 2025 23:28:56 +0530 Subject: [PATCH 1/4] Fix: include missing actions folder with plugin zip --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index d2bbd5c..36b0a02 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "npm": ">=10.0.0" }, "files": [ + "actions/", "build/", "inc/", "vendor/", From b210546672358322fc91485f05b7af652c5944ae Mon Sep 17 00:00:00 2001 From: Utsav Patel Date: Mon, 22 Dec 2025 18:20:19 +0530 Subject: [PATCH 2/4] chore: prepare plugin for release --- README.md | 4 ++-- docs/CHANGELOG.md | 9 +++++++++ inc/Modules/Plugin/Cache.php | 9 ++++++++- oneupdate.php | 6 +++--- readme.txt | 14 ++++++++++---- 5 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 docs/CHANGELOG.md diff --git a/README.md b/README.md index d2042dd..2509b50 100644 --- a/README.md +++ b/README.md @@ -64,8 +64,8 @@ OneUpdate solves this by: | :---- | :---- | | WordPress | \>= 6.8 | | PHP | \>= 8.1 | -| Tested Up to | \>= 6.8.2 | -| Stable Tag | 1.0 | +| Tested Up to | \>= 6.9 | +| Stable Tag | 1.1.0-beta.1 | | Prerequisites | CI/CD managed sites (GitHub/GitLab/Bitbucket) | ## Installation & Setup diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md new file mode 100644 index 0000000..5291b9b --- /dev/null +++ b/docs/CHANGELOG.md @@ -0,0 +1,9 @@ +# Changelog + +## 1.1.0-beta.1 + +- Feat: Refactor for WPCS and best practices + +## 1.0.0-beta + +- Initial public release diff --git a/inc/Modules/Plugin/Cache.php b/inc/Modules/Plugin/Cache.php index c75d724..e51c5cd 100644 --- a/inc/Modules/Plugin/Cache.php +++ b/inc/Modules/Plugin/Cache.php @@ -202,11 +202,18 @@ public static function rebuild_transient_for_single_plugin( string $plugin_slug, $plugin_slug = explode( '/', $plugin_slug )[0]; $existing_transient = get_transient( self::TRANSIENT_GET_PLUGINS ); - if ( ! $existing_transient ) { + if ( empty( $existing_transient ) ) { self::build_plugins_transient(); + return; } $reconstructed_plugins = json_decode( $existing_transient, true ); + // if plugin not found or data is corrupted, rebuild the entire transient. + if ( is_wp_error( $reconstructed_plugins ) || ! isset( $reconstructed_plugins[ $plugin_slug ] ) ) { + self::build_plugins_transient(); + return; + } + // add is_active field to the plugin. $reconstructed_plugins[ $plugin_slug ]['is_active'] = $is_activation ? true : ( $is_deactivation ? false : is_plugin_active( $original_plugin_slug ) ); diff --git a/oneupdate.php b/oneupdate.php index 8e491ca..0034b49 100644 --- a/oneupdate.php +++ b/oneupdate.php @@ -10,10 +10,10 @@ * License URI: https://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: oneupdate * Domain Path: /languages - * Version: 1.0.0 + * Version: 1.1.0-beta.1 * Requires PHP: 8.1 * Requires at least: 6.8 - * Tested up to: 6.8.2 + * Tested up to: 6.9 * * @package OneUpdate */ @@ -30,7 +30,7 @@ function constants(): void { /** * Version of the plugin. */ - define( 'ONEUPDATE_VERSION', '1.0.0' ); + define( 'ONEUPDATE_VERSION', '1.1.0-beta.1' ); /** * Root path to the plugin directory. diff --git a/readme.txt b/readme.txt index 5ef02f8..7a71e8b 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: Utsav Patel, rtCamp Donate link: https://rtcamp.com/ Tags: plugin manager, CI/CD, automation, enterprise Requires at least: 6.8 -Tested up to: 6.8 -Stable tag: 1.0.0 +Tested up to: 6.9 +Stable tag: 1.1.0-beta.1 Requires PHP: 8.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -114,7 +114,10 @@ For public plugins, you can choose from the latest 5 available versions from Wor == Changelog == -= 1.0.0 = += 1.1.0-beta.1 = +Feat: Refactor for WPCS and best practices + += 1.0.0-beta = * Initial release * Centralized plugin management governing * Support for public and private plugins @@ -127,7 +130,10 @@ For public plugins, you can choose from the latest 5 available versions from Wor == Upgrade Notice == -= 1.0.0 = += 1.1.0-beta.1 = +Feat: Refactor for WPCS and best practices + += 1.0.0-beta = Initial release of OneUpdate. Perfect for enterprises managing multiple WordPress sites through CI/CD workflows. == Requirements == From 92387b9f8507196e949ff464b2d7d10792a836b5 Mon Sep 17 00:00:00 2001 From: Utsav Patel Date: Mon, 22 Dec 2025 18:33:27 +0530 Subject: [PATCH 3/4] Fix: condition --- inc/Modules/Plugin/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Modules/Plugin/Cache.php b/inc/Modules/Plugin/Cache.php index e51c5cd..ff7747b 100644 --- a/inc/Modules/Plugin/Cache.php +++ b/inc/Modules/Plugin/Cache.php @@ -209,7 +209,7 @@ public static function rebuild_transient_for_single_plugin( string $plugin_slug, $reconstructed_plugins = json_decode( $existing_transient, true ); // if plugin not found or data is corrupted, rebuild the entire transient. - if ( is_wp_error( $reconstructed_plugins ) || ! isset( $reconstructed_plugins[ $plugin_slug ] ) ) { + if ( empty( $reconstructed_plugins ) || ! isset( $reconstructed_plugins[ $plugin_slug ] ) ) { self::build_plugins_transient(); return; } From 3215532c4794b6750acfb6dd94d75a6744a9332d Mon Sep 17 00:00:00 2001 From: Utsav Patel Date: Mon, 22 Dec 2025 21:30:44 +0530 Subject: [PATCH 4/4] address PR feedbacks --- docs/CHANGELOG.md => CHANGELOG.md | 0 README.md | 6 ------ readme.txt | 5 ----- 3 files changed, 11 deletions(-) rename docs/CHANGELOG.md => CHANGELOG.md (100%) diff --git a/docs/CHANGELOG.md b/CHANGELOG.md similarity index 100% rename from docs/CHANGELOG.md rename to CHANGELOG.md diff --git a/README.md b/README.md index 2509b50..5796ca2 100644 --- a/README.md +++ b/README.md @@ -60,12 +60,6 @@ OneUpdate solves this by: ## System Requirements -| Requirement | Version | -| :---- | :---- | -| WordPress | \>= 6.8 | -| PHP | \>= 8.1 | -| Tested Up to | \>= 6.9 | -| Stable Tag | 1.1.0-beta.1 | | Prerequisites | CI/CD managed sites (GitHub/GitLab/Bitbucket) | ## Installation & Setup diff --git a/readme.txt b/readme.txt index 7a71e8b..b10cf02 100644 --- a/readme.txt +++ b/readme.txt @@ -130,16 +130,11 @@ Feat: Refactor for WPCS and best practices == Upgrade Notice == -= 1.1.0-beta.1 = -Feat: Refactor for WPCS and best practices - = 1.0.0-beta = Initial release of OneUpdate. Perfect for enterprises managing multiple WordPress sites through CI/CD workflows. == Requirements == -* WordPress 6.8 or higher -* PHP 8.1 or higher * Sites managed through CI/CD pipelines (GitHub/GitLab/Bitbucket) * GitHub PAT token with repository write access * S3 credentials for private plugin management