Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion common/lib/mu-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function getStandardMuPlugins( options: MuPluginOptions ): MuPlugin[] {
`,
} );

// Disable auto-updates if configured
// Configure auto-updates based on Studio settings
if ( ! options.isWpAutoUpdating ) {
muPlugins.push( {
filename: '0-disable-auto-updates.php',
Expand All @@ -256,6 +256,16 @@ function getStandardMuPlugins( options: MuPluginOptions ): MuPlugin[] {
add_filter( 'allow_major_auto_core_updates', '__return_false' );
`,
} );
} else {
muPlugins.push( {
filename: '0-enable-auto-updates.php',
content: `<?php
// Enable auto-updates
add_filter( 'allow_dev_auto_core_updates', '__return_true' );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will make sites with a stable version automatically update to betas, but we should double-check.

Copy link
Contributor

@gavande1 gavande1 Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this filter will only run when you are on dev version. So it won't be automatically update stable versions to dev versions.
https://github.com/WordPress/wordpress-develop/blob/3a5da6c220aa50e1d928ec77257189ed353e4d0b/src/wp-admin/includes/class-core-upgrader.php#L346-L361

add_filter( 'allow_minor_auto_core_updates', '__return_true' );
add_filter( 'allow_major_auto_core_updates', '__return_true' );
`,
} );
}

// HTTP request timeout
Expand Down