[wp-trac] [WordPress Trac] #51742: Core auto-updates UI: disable checkbox when filter or constant takes precedent on the option
WordPress Trac
noreply at wordpress.org
Thu Nov 12 20:06:55 UTC 2020
#51742: Core auto-updates UI: disable checkbox when filter or constant takes
precedent on the option
----------------------------------------------+-----------------------
Reporter: audrasjb | Owner: audrasjb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.6
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-screenshots commit | Focuses: ui
----------------------------------------------+-----------------------
Comment (by audrasjb):
As said on Slack and just in case you didn't see the conversation
@karmatosed, I'm afraid we can't use "Switch to automatic updates for
maintenance and security release only" as disabling major auto-udpates
doesn't mean that security updates will be enabled. I know that sounds
weird, but technically, minor updates can be disabled while majors are
enabled 😅
That's possible because of filters bellow: They were introduced in WP 3.7
and are totally independant each others:
{{{
add_filter( 'allow_dev_auto_core_updates', '__return_true' ); //
Enable development updates
add_filter( 'allow_minor_auto_core_updates', '__return_true' ); //
Enable minor updates
add_filter( 'allow_major_auto_core_updates', '__return_true' ); //
Enable major updates
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51742#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list