Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

## 1.1.0-beta.1

- Feat: Refactor for WPCS and best practices

## 1.0.0-beta

- Initial public release
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion inc/Modules/Plugin/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );

Expand Down
6 changes: 3 additions & 3 deletions oneupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"npm": ">=10.0.0"
},
"files": [
"actions/",
"build/",
"inc/",
"vendor/",
Expand Down
13 changes: 7 additions & 6 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading