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
2 changes: 2 additions & 0 deletions RELEASE.MD
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ The `release/X.Y.Z` branch must be merged to `development` for testing and valid

**BE AWARE!** The release branch may be auto-deleted. If so, _BEFORE_ you close the window, click **RESTORE BRANCH**

**ALSO BE AWARE!** Any open PRs targeting the release branch will be auto-closed if the branch is deleted. You will need to reopen them.

## 5. Create a new release on GitHub

1. From the repository's main page, click the **Releases** link — or go directly to the [Releases page](https://github.com/fairpm/fair-plugin/releases).
Expand Down
6 changes: 5 additions & 1 deletion inc/packages/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,12 @@ function add_package_to_release_cache( string $did ) : void {
if ( empty( $did ) ) {
return;
}
$latest_release = get_latest_release_from_did( $did );
if ( is_wp_error( $latest_release ) ) {
return;
}
$releases = get_site_transient( CACHE_RELEASE_PACKAGES ) ?: [];
$releases[ $did ] = get_latest_release_from_did( $did );
$releases[ $did ] = $latest_release;
set_site_transient( CACHE_RELEASE_PACKAGES, $releases );
}

Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: FAIR Connect - Federated and Independent Repositories
* Description: Make your site more FAIR.
* Version: 1.4.0-BETA
* Version: 1.4.0-BETA5
* Author: FAIR Contributors
* Author URI: https://fair.pm
* Security: security@fair.pm
Expand All @@ -20,7 +20,7 @@

namespace FAIR;

const VERSION = '1.4.0-BETA';
const VERSION = '1.4.0-BETA5';
const PLUGIN_DIR = __DIR__;
const PLUGIN_FILE = __FILE__;

Expand Down
Loading