diff --git a/RELEASE.MD b/RELEASE.MD index 1cd424ec..86280ecb 100644 --- a/RELEASE.MD +++ b/RELEASE.MD @@ -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). diff --git a/inc/packages/namespace.php b/inc/packages/namespace.php index 0c0dbc62..28ee8886 100644 --- a/inc/packages/namespace.php +++ b/inc/packages/namespace.php @@ -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 ); } diff --git a/plugin.php b/plugin.php index 308facb2..e45cd0b6 100644 --- a/plugin.php +++ b/plugin.php @@ -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 @@ -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__;