summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-07-31 14:36:56 (GMT)
committerNathaniel Catchpole2018-07-31 14:36:56 (GMT)
commitca462c5089f6af87bdce6ef6cb2460084a6d3c15 (patch)
tree269576818fc733db56d9c8f41617540431b3589f
parent2c306a53af55d28d68a16ca4c430b59073926dbd (diff)
Issue #2989243 by xjm: _update_equivalent_security_releases() should not diverge per branch8.4.x
-rw-r--r--core/modules/update/update.module9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/modules/update/update.module b/core/modules/update/update.module
index da8342d..6f1ab74 100644
--- a/core/modules/update/update.module
+++ b/core/modules/update/update.module
@@ -413,7 +413,7 @@ function update_get_available($refresh = FALSE) {
// @todo This is a temporary fix to allow minor-version backports of security
// fixes to be shown as secure. It should not be included in the codebase of
// any release or branch other than such backports. Replace this with
- // https://www.drupal.org/project/drupal/issues/2766491.
+ // https://www.drupal.org/project/drupal/issues/2804155.
foreach (_update_equivalent_security_releases() as $equivalent_release) {
if (!empty($available['drupal']['releases'][$equivalent_release]['terms']['Release type'])) {
$security_release_key = array_search('Security update', $available['drupal']['releases'][$equivalent_release]['terms']['Release type']);
@@ -439,12 +439,15 @@ function update_get_available($refresh = FALSE) {
* (i.e. covered by the same advisory), for backported security fixes only.
*
* @todo This is a temporary fix to allow minor-version backports of security
- * fixes to be shown as secure. It should not be included in the codebase of
- * any release or branch other than such backports. Replace this with
+ * fixes to be shown as secure. Replace this with
* https://www.drupal.org/project/drupal/issues/2766491.
*/
function _update_equivalent_security_releases() {
switch (\Drupal::VERSION) {
+ case '8.3.8':
+ return ['8.4.5', '8.5.0-rc1'];
+ case '8.3.9':
+ return ['8.4.6', '8.5.1'];
case '8.4.5':
return ['8.5.0-rc1'];
case '8.4.6':