Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed Apr 9, 2024
1 parent ac6d186 commit ca50f74
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions inc/admin/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,16 @@ function ( $excluded ) use ( $pattern_field, $label, $is_form_submit, &$errors )

// Regenerate the minify key if JS files have been modified.
// phpcs:ignore Universal.Operators.StrictComparisons.LooseNotEqual
if ( ( isset( $newvalue['minify_js'], $oldvalue['minify_js'] ) && $newvalue['minify_js'] != $oldvalue['minify_js'] )
|| ( isset( $newvalue['exclude_js'], $oldvalue['exclude_js'] ) && $newvalue['exclude_js'] !== $oldvalue['exclude_js'] )
|| ( isset( $oldvalue['cdn'] ) && ! isset( $newvalue['cdn'] ) || ! isset( $oldvalue['cdn'] ) && isset( $newvalue['cdn'] ) )
if (
( isset( $newvalue['minify_js'], $oldvalue['minify_js'] ) && $newvalue['minify_js'] != $oldvalue['minify_js'] ) // phpcs:ignore Universal.Operators.StrictComparisons.LooseNotEqual
||
( isset( $newvalue['exclude_js'], $oldvalue['exclude_js'] ) && $newvalue['exclude_js'] !== $oldvalue['exclude_js'] )
||
(
( isset( $oldvalue['cdn'] ) && ! isset( $newvalue['cdn'] ) )
||
( ! isset( $oldvalue['cdn'] ) && isset( $newvalue['cdn'] ) )
)
) {
$newvalue['minify_js_key'] = create_rocket_uniqid();
}
Expand Down

0 comments on commit ca50f74

Please sign in to comment.