diff --git a/core/modules/update/templates/update-version.html.twig b/core/modules/update/templates/update-version.html.twig
index 7479606dcd..decc9df6ec 100644
--- a/core/modules/update/templates/update-version.html.twig
+++ b/core/modules/update/templates/update-version.html.twig
@@ -7,8 +7,6 @@
* - attributes: HTML attributes suitable for a container element.
* - title: The title of the project.
* - core_compatibility_details: Render array of core compatibility details.
- * - show_download_link: A flag indicating whether the download link should be
- * shown.
* - version: A list of data about the latest released version, containing:
* - version: The version number.
* - date: The date of the release.
@@ -36,7 +34,7 @@
- {% if show_download_link %}
+ {% if version.core_compatible is not defined or version.core_compatible %}
-
{{ 'Download'|t }}
diff --git a/core/modules/update/update.report.inc b/core/modules/update/update.report.inc
index c352d4ce8b..53fcb0f619 100644
--- a/core/modules/update/update.report.inc
+++ b/core/modules/update/update.report.inc
@@ -112,9 +112,7 @@ function template_preprocess_update_report(&$variables) {
*/
function template_preprocess_update_version(array &$variables) {
$version = $variables['version'];
- $variables['show_download_link'] = $version['core_compatible'] ?? TRUE;
$core_compatible = !empty($version['core_compatible']);
- $core_compatibility_message = $version['core_compatibility_message'] ?? NULL;
if (empty($version['core_compatibility_message'])) {
return;
}
diff --git a/core/themes/claro/templates/admin/update-version.html.twig b/core/themes/claro/templates/admin/update-version.html.twig
index 91c3a29ff0..00fef397bc 100644
--- a/core/themes/claro/templates/admin/update-version.html.twig
+++ b/core/themes/claro/templates/admin/update-version.html.twig
@@ -7,8 +7,6 @@
* - attributes: HTML attributes suitable for a container element.
* - title: The title of the project.
* - core_compatibility_details: Render array of core compatibility details.
- * - show_download_link: A flag indicating whether the download link should be
- * shown.
* - version: A list of data about the latest released version, containing:
* - version: The version number.
* - date: The date of the release.
@@ -34,7 +32,7 @@
- {% if show_download_link %}
+ {% if version.core_compatible is not defined or version.core_compatible %}
-
{{ 'Download'|t }}
diff --git a/core/themes/stable/templates/admin/update-version.html.twig b/core/themes/stable/templates/admin/update-version.html.twig
index e8c3433d5e..4b0389ea60 100644
--- a/core/themes/stable/templates/admin/update-version.html.twig
+++ b/core/themes/stable/templates/admin/update-version.html.twig
@@ -7,8 +7,6 @@
* - attributes: HTML attributes suitable for a container element.
* - title: The title of the project.
* - core_compatibility_details: Render array of core compatibility details.
- * - show_download_link: A flag indicating whether the download link should be
- * shown.
* - version: A list of data about the latest released version, containing:
* - version: The version number.
* - date: The date of the release.
@@ -34,7 +32,7 @@
- {% if show_download_link %}
+ {% if version.core_compatible is not defined or version.core_compatible %}
-
{{ 'Download'|t }}