diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
index 575559210c..3aaf0eca40 100644
--- a/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
+++ b/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
@@ -55,16 +55,14 @@ static function display() {
protected static function display_release_cooldown() {
$post = get_post();
- $version = get_post_meta( $post->ID, 'version', true );
- if ( ! $version ) {
- return;
- }
-
- $release = Plugin_Directory::get_release( $post, $version );
+ // Resolved from the stable tag, so the hold shows even when the Version header is empty or disagrees.
+ $release = API_Update_Updater::get_current_release( $post );
if ( ! $release ) {
return;
}
+ $release_version = $release['version'];
+
$release_delay = (int) ( $release['release_delay'] ?? 0 );
if ( ! $release_delay ) {
return;
@@ -82,7 +80,7 @@ protected static function display_release_cooldown() {
printf(
/* translators: 1: version, 2: relative time until cooldown expires, 3: absolute UTC timestamp */
esc_html__( 'Version %1$s is in the release cooldown — it will be served to sites in %2$s (at %3$s UTC).', 'wporg-plugins' ),
- esc_html( $version ),
+ esc_html( $release_version ),
esc_html( human_time_diff( time(), $cooldown_until ) ),
esc_html( gmdate( 'Y-m-d H:i', $cooldown_until ) )
);
@@ -100,12 +98,12 @@ protected static function display_release_cooldown() {
>
-