diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..5291b9b --- /dev/null +++ b/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/README.md b/README.md index d2042dd..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.8.2 | -| Stable Tag | 1.0 | | Prerequisites | CI/CD managed sites (GitHub/GitLab/Bitbucket) | ## Installation & Setup diff --git a/inc/Modules/Plugin/Cache.php b/inc/Modules/Plugin/Cache.php index c75d724..ff7747b 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 ( empty( $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/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/", diff --git a/readme.txt b/readme.txt index 5ef02f8..b10cf02 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,13 +130,11 @@ For public plugins, you can choose from the latest 5 available versions from Wor == Upgrade Notice == -= 1.0.0 = += 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