WP Tavern › Forums › Create Topic
Chip Bennett @Ryan Hellyer – Opt-in for existing sites makes a lot of sense I think. Perhaps a dialog box could pop open prompting them to confirm they want to switch, as otherwise a lot of existing sites will never gain that new feature. In my ideal world, this would be handled by a wp-config constant definition, with values of FALSE, 'core', or 'all', that defaults to “false”: if ( ! defined( 'AUTOMATIC_UPDATES' ) ) { $automatic_updates = false }; On new installations, that can be pre-configured in wp-config, like so: define( 'AUTOMATIC_UPDATES', 'core' ); That way, on existing installations, if the constant isn’t added, then the value remains at FALSE. And anyone who wants to opt-in to automatic updates for core, Themes, and Plugins can use the third value: define( 'AUTOMATIC_UPDATES', 'all' );
Chip Bennett
@Ryan Hellyer –
Opt-in for existing sites makes a lot of sense I think. Perhaps a dialog box could pop open prompting them to confirm they want to switch, as otherwise a lot of existing sites will never gain that new feature.
In my ideal world, this would be handled by a wp-config constant definition, with values of FALSE, 'core', or 'all', that defaults to “false”: if ( ! defined( 'AUTOMATIC_UPDATES' ) ) { $automatic_updates = false };
FALSE
'core'
'all'
if ( ! defined( 'AUTOMATIC_UPDATES' ) ) { $automatic_updates = false };
On new installations, that can be pre-configured in wp-config, like so: define( 'AUTOMATIC_UPDATES', 'core' );
define( 'AUTOMATIC_UPDATES', 'core' );
That way, on existing installations, if the constant isn’t added, then the value remains at FALSE.
And anyone who wants to opt-in to automatic updates for core, Themes, and Plugins can use the third value: define( 'AUTOMATIC_UPDATES', 'all' );
define( 'AUTOMATIC_UPDATES', 'all' );
Name *
Email *
Website:
Topic Title (Maximum Length: 80):
Forum: — No forum —AI and WordPress Articles Blocks Showcase Discussions Events Introductions Jobs and Working in WordPress Podcast Episodes Site and Block Editor
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Email Address
Submit
Enter the destination URL
Or link to existing content