Skip to content

Commit

Permalink
Merge pull request #79 from newfold-labs/release/v2.4.1
Browse files Browse the repository at this point in the history
Release 2.4.1
  • Loading branch information
arunshenoy99 authored Jan 22, 2025
2 parents 87589df + c196798 commit 907426d
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 30 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"wp-forge/wp-htaccess-manager": "^1.0",
"wpscholar/url": "^1.2.5",
"newfold-labs/wp-module-features": "^1.4",
"newfold-labs/wp-module-installer": "^1.2.2"
"newfold-labs/wp-module-installer": "^1.3.0"
},
"require-dev": {
"newfold-labs/wp-php-standards": "^1.2.4"
Expand Down
28 changes: 14 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions includes/Images/ImageSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ class ImageSettings {
* @var array
*/
private const DEFAULT_SETTINGS = array(
'enabled' => false,
'enabled' => true,
'bulk_optimization' => false,
'prefer_optimized_image_when_exists' => false,
'auto_optimized_uploaded_images' => array(
'enabled' => false,
'auto_delete_original_image' => false,
),
'lazy_loading' => array(
'enabled' => false,
'enabled' => true,
),
);

Expand Down
2 changes: 1 addition & 1 deletion includes/Performance.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public function add_to_runtime( $sdk ) {
'jetpack_boost_minify_css' => get_option( 'jetpack_boost_status_minify-css', array() ),
'jetpack_boost_minify_css_excludes' => implode( ',', get_option( 'jetpack_boost_ds_minify_css_excludes', array( 'admin-bar', 'dashicons', 'elementor-app' ) ) ),
'install_token' => PluginInstaller::rest_get_plugin_install_hash(),
'skip404' => (bool) get_option( 'newfold_skip_404_handling', false ),
'skip404' => getSkip404Option(),
);

return array_merge( $sdk, array( 'performance' => $values ) );
Expand Down
4 changes: 3 additions & 1 deletion includes/RestApi/SettingsController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
namespace NewfoldLabs\WP\Module\Performance\RestApi;

use NewfoldLabs\WP\Module\Performance\Performance;

/**
* Class Settings
*
Expand Down Expand Up @@ -77,7 +79,7 @@ public function set_options( $request ) {

switch ( $field['id'] ) {
case 'skip404':
$result = update_option( 'newfold_skip_404_handling', $field['value'] );
$result = update_option( Performance::OPTION_SKIP_404, $field['value'] );
break;

default:
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"William Earnhardt (https://wearnhardt.com)"
],
"dependencies": {
"@newfold/ui-component-library": "^1.1.0",
"@newfold/ui-component-library": "^1.1.1",
"@newfold/wp-module-runtime": "^1.1.3",
"html-react-parser": "^5.2.2"
},
Expand All @@ -20,7 +20,7 @@
"@testing-library/cypress": "^10.0.2",
"@wordpress/scripts": "^26.19.0",
"css-minimizer-webpack-plugin": "^7.0.0",
"cypress": "^13.17.0",
"cypress": "^14.0.0",
"cypress-axe": "^1.4.0",
"tailwindcss": "^3.4.16"
},
Expand Down

0 comments on commit 907426d

Please sign in to comment.