Skip to content

Commit

Permalink
Boost: Add "load default strings" to excludes in concatenate UI (#40496)
Browse files Browse the repository at this point in the history
Co-authored-by: Adnan Haque <adnan007.id@gmail.com>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12371030508

Upstream-Ref: Automattic/jetpack@cf6b2de
  • Loading branch information
dilirity authored and matticbot committed Dec 17, 2024
1 parent 1b9bff9 commit 21e7769
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 51 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
This is an alpha version! The changes listed here are not final.

### Added
- Concatenate JS/CSS: Add a button that allows loading default excludes.
- General: Added tracks events to clickable elements on the settings page.
- General: Add WordPress filters to allow Cornerstone Pages list and Image Size Analyzer source data to be updated.

Expand Down
2 changes: 1 addition & 1 deletion app/assets/dist/jetpack-boost.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '08c5bd634baa19957f03');
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '16c5a440f147190e0217');
2 changes: 1 addition & 1 deletion app/assets/dist/jetpack-boost.css

Large diffs are not rendered by default.

97 changes: 49 additions & 48 deletions app/assets/dist/jetpack-boost.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/dist/jetpack-boost.rtl.css

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions wp-js-data-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,19 @@ function jetpack_boost_initialize_datasync() {
$css_excludes_entry = new Minify_Excludes_State_Entry( 'minify_css_excludes' );
jetpack_boost_register_option( 'minify_js_excludes', Schema::as_array( Schema::as_string() )->fallback( Minify_JS::$default_excludes ), $js_excludes_entry );
jetpack_boost_register_option( 'minify_css_excludes', Schema::as_array( Schema::as_string() )->fallback( Minify_CSS::$default_excludes ), $css_excludes_entry );
jetpack_boost_register_readonly_option(
'minify_js_excludes_default',
function () {
return Minify_JS::$default_excludes;
}
);
jetpack_boost_register_readonly_option(
'minify_css_excludes_default',
function () {
return Minify_CSS::$default_excludes;
}
);

jetpack_boost_register_option(
'image_cdn_quality',
Schema::as_assoc_array(
Expand Down

0 comments on commit 21e7769

Please sign in to comment.