diff --git a/core/lib/Drupal/Core/Extension/module.api.php b/core/lib/Drupal/Core/Extension/module.api.php index 3c1c228..2abf196 100644 --- a/core/lib/Drupal/Core/Extension/module.api.php +++ b/core/lib/Drupal/Core/Extension/module.api.php @@ -711,8 +711,8 @@ function hook_post_update_NAME(&$sandbox) { $blocks = $block_storage->loadMultiple($block_ids); /** @var $blocks \Drupal\block\BlockInterface[] */ foreach ($blocks as $block) { - // This block will have an invalid context mapping service and must be - // disabled in order to prevent information disclosure. + // This block has had conditions removed due to an inability to resolve + // contexts in block_update_8001() so disable it. // Disable currently enabled blocks. if ($block_update_8001[$block->id()]['status']) { diff --git a/core/modules/block/block.post_update.php b/core/modules/block/block.post_update.php index 17e0497..f208f65 100644 --- a/core/modules/block/block.post_update.php +++ b/core/modules/block/block.post_update.php @@ -39,8 +39,8 @@ function block_post_update_disable_blocks_with_missing_contexts() { $blocks = $block_storage->loadMultiple($block_ids); /** @var $blocks \Drupal\block\BlockInterface[] */ foreach ($blocks as $block) { - // This block will have an invalid context mapping service and must be - // disabled in order to prevent information disclosure. + // This block has had conditions removed due to an inability to resolve + // contexts in block_update_8001() so disable it. // Disable currently enabled blocks. if ($block_update_8001[$block->id()]['status']) {