Fix WP auto-updates not being enforced when enabled in Studio - #2262
Merged
Conversation
Contributor
📊 Performance Test ResultsComparing 017fecf vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
sejas
approved these changes
Dec 16, 2025
| filename: '0-enable-auto-updates.php', | ||
| content: `<?php | ||
| // Enable auto-updates | ||
| add_filter( 'allow_dev_auto_core_updates', '__return_true' ); |
Member
There was a problem hiding this comment.
I don't think this will make sites with a stable version automatically update to betas, but we should double-check.
Contributor
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Related issues
Proposed Changes
Studio only disabled auto-updates when the setting was off, but didn't actively enable them when on. This meant WordPress sites with auto-updates already disabled in their database wouldn't respect Studio's enable setting.
This PR ensures Studio's auto-update setting is the source of truth by explicitly enabling auto-updates when
isWpAutoUpdatingis true.Testing Instructions
Pre-merge Checklist