From e66a3860b3b056ff9f695f3539117034250540cb Mon Sep 17 00:00:00 2001 From: catch Date: Wed, 23 Dec 2020 10:46:13 +0000 Subject: [PATCH] Issue #3105353 by tedbow, dww, xjm, joachim: Remove the ability for module to define "major" in their info.yml files --- core/modules/update/update.compare.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/modules/update/update.compare.inc b/core/modules/update/update.compare.inc index 02ca3ce8160b..9dffec60a2a1 100644 --- a/core/modules/update/update.compare.inc +++ b/core/modules/update/update.compare.inc @@ -41,10 +41,9 @@ function update_process_project_info(&$projects) { if (preg_match('/^(\d+\.x-)?(\d+)\..*$/', $info['version'], $matches)) { $info['major'] = $matches[2]; } - elseif (!isset($info['major'])) { + else { // This would only happen for version strings that don't follow the - // drupal.org convention. We let contribs define "major" in their - // .info.yml in this case, and only if that's missing would we hit this. + // drupal.org convention. $info['major'] = -1; } }