-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closes #7038 Activate minification by default #7052
base: feature/3.18
Are you sure you want to change the base?
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
I'm approving the change as it's ok for me. However, |
We should create a branch-3.18 and merge it in it for now |
Created a |
Waiting confirmation about AC here https://wp-media.slack.com/archives/CUKB44GNN/p1730380086011399 => confirmed. @Khadreal can you please check multisite and safe mode scenarios 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the grooming, don't we need to also do this for safe mode as well?
@Khadreal Thanks for the update. While expected to be like on 3.17.3.1
|
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be happening
*/ | ||
function rocket_maybe_disable_minification( $options ) { | ||
if ( 'on' === get_option( 'autoptimize_css' ) ) { | ||
update_rocket_option( 'minify_css', 0 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we use the rocket_first_install_options
filter, there shouldn't be any update_rocket_option()
call since the option itself doesn't exist yet.
setting the array value to 0
should be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree with @remyperona
@Khadreal can u replicate the issue mentioned by Mai? for me I can't (after removing the callback rocket_maybe_disable_minification)
Description
Fixes #7038
Activate minification by default.
Type of change
Detailed scenario
Check EPIC Card
Technical description
Change the value of minify_css/js to 1 to activate it by default.
Documentation
Mandatory Checklist
Code validation
Code style