wp-media / imagify-plugin

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

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

Closed Miraeld closed 8 months ago

Miraeld commented 8 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 8 months ago

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