wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

Closes #837: htaccess always modified when saving settings #861

Closed Miraeld closed 3 months ago

Miraeld commented 3 months ago

Description

Fixes #837

Documentation

User documentation

The .htaccess was always being modified while saving Imagify settings. This PR fix this behavior to modify the .htaccess only when there is a change in the settings.

Technical documentation

We just check if the previous value is the same as the current one before changing the .htaccess.

Type of change

Delete options that are not relevant.

Checklists

Feature validation

Documentation

Code style

Mai-Saad commented 3 months ago

Related test plan https://wpmediaqa.testrail.io/index.php?/runs/view/831&group_by=cases:section_id&group_order=asc