Ticket #51743: 51743.3.diff
File 51743.3.diff, 1.5 KB (added by , 3 years ago) |
---|
-
src/wp-admin/includes/schema.php
535 535 'disallowed_keys' => '', 536 536 'comment_previously_approved' => 1, 537 537 'auto_plugin_theme_update_emails' => array(), 538 539 // 5.6.0 540 'auto_update_core_dev' => 'enabled', 541 'auto_update_core_minor' => 'enabled', 542 // Default to enabled for new installs. 543 // See https://core.trac.wordpress.org/ticket/51742. 544 'auto_update_core_major' => 'enabled', 538 545 ); 539 546 540 547 // 3.3.0 -
src/wp-admin/includes/upgrade.php
874 874 upgrade_550(); 875 875 } 876 876 877 if ( $wp_current_db_version < 49534 ) { 878 upgrade_560(); 879 } 880 877 881 maybe_disable_link_manager(); 878 882 879 883 maybe_disable_automattic_widgets(); … … 2237 2241 } 2238 2242 2239 2243 /** 2244 * Executes changes made in WordPress 5.6.0. 2245 * 2246 * @ignore 2247 * @since 5.6.0 2248 */ 2249 function upgrade_560() { 2250 // When upgrading from WP < 5.6.0 set the core major auto-updates option to `unset` by default. 2251 // This overrides the same option from populate_options() that is intended for new installs. 2252 // See https://core.trac.wordpress.org/ticket/51742. 2253 update_option( 'auto_update_core_major', 'unset' ); 2254 } 2255 2256 /** 2240 2257 * Executes network-level upgrade routines. 2241 2258 * 2242 2259 * @since 3.0.0