diff --git a/core/modules/block/block.install b/core/modules/block/block.install index 4832979..abba6b5 100644 --- a/core/modules/block/block.install +++ b/core/modules/block/block.install @@ -108,8 +108,12 @@ function block_update_8002() { $blocks[$block_id] = $block = $config_factory->getEditable('block.block.' . $block_id); // This block will have an invalid context mapping service and must be // disabled in order to prevent information disclosure. - $block->set('status', FALSE); - $block->save(TRUE); + + // Just disable the blocks which has been enabled before. + if ($block_update_8001[$block_id]['status']) { + $block->set('status', FALSE); + $block->save(TRUE); + } } // Provides a list of plugin labels, keyed by plugin ID.