reverted: --- b/core/modules/node/lib/Drupal/node/NodeFormController.php +++ a/core/modules/node/lib/Drupal/node/NodeFormController.php @@ -28,7 +28,7 @@ protected function prepareEntity() { $node = $this->entity; // Set up default values, if required. + $node_options = variable_get('node_options_' . $node->type, array('status', 'promote')); - $node_options = variable_get('node_options_' . $node->type, array('status')); // If this is a new node, fill in the default values. if (!isset($node->nid) || isset($node->is_new)) { foreach (array('status', 'promote', 'sticky') as $key) { interdiff impossible; taking evasive action reverted: --- b/core/modules/node/node.install +++ a/core/modules/node/node.install @@ -1147,28 +1147,6 @@ } /** - * Change default promoted flag of node types to enabled. - * - * The default for 'Promoted to front page' was changed from enabled to - * disabled. Since enabled was the implicit default previously, and may not have - * been explicitly configured as such, this update ensures that the old implicit - * default is still the default. - */ -function node_update_8019() { - // Fetch the available node types. - $types = db_query('SELECT type FROM {node_type}')->fetchCol(); - - foreach ($types as $type) { - $options = variable_get("node_options_$type"); - if (!isset($options)) { - $options['promote'] = 'promote'; - $options['status'] = 'status'; - variable_set("node_options_$type", $options); - } - } -} - -/** * @} End of "addtogroup updates-7.x-to-8.x" * The next series of updates should start at 9000. */ unchanged: --- a/core/modules/node/node.install +++ b/core/modules/node/node.install @@ -1160,6 +1160,28 @@ function node_update_8019() { } /** + * Change default promoted flag of node types to enabled. + * + * The default for 'Promoted to front page' was changed from enabled to + * disabled. Since enabled was the implicit default previously, and may not have + * been explicitly configured as such, this update ensures that the old implicit + * default is still the default. + */ +function node_update_8020() { + // Fetch the available node types. + $types = db_query('SELECT type FROM {node_type}')->fetchCol(); + + foreach ($types as $type) { + $options = variable_get("node_options_$type"); + if (!isset($options)) { + $options['promote'] = 'promote'; + $options['status'] = 'status'; + variable_set("node_options_$type", $options); + } + } +} + +/** * @} End of "addtogroup updates-7.x-to-8.x" * The next series of updates should start at 9000. */