Skip to content
Snippets Groups Projects
Commit ca462c50 authored by catch's avatar catch
Browse files

Issue #2989243 by xjm: _update_equivalent_security_releases() should not diverge per branch

parent 2c306a53
Branches 8.4.x
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment