This version brings fundamental improvements to the way the plugin interacts with two sensitive WordPress files: the .htaccess and the wp-config.php.
File writing: a more robust approach
Modify the .htaccess or the wp-config.php is a delicate operation. Under normal conditions everything goes smoothly, but in certain environments - shared servers under load, memory restrictions, shared hosting with atypical configurations - an interruption at the wrong moment could leave the file in an incomplete state.
We have reviewed this logic from top to bottom.
From now on, all modifications will be subject to a writing to a temporary file before being applied. The final file is only replaced once the write has been confirmed as complete - this switchover is an instantaneous, indivisible operation on the server side. As a result, the file in production is never in an intermediate state, whatever the situation.
We also added a automatic backup system before each modification, a time-stamped copy is kept (the last 5 are retained). And if anything goes wrong, the plugin automatically restores the previous version.
All these operations are now visible in logs WPMastertoolkit for diagnostics.
Also in this version
The module Add Essentials Shortcodes (PRO) is enriched with a parameter id-from-get you can dynamically retrieve an ID from the URL (ex. ?post_id=42) in your User, Post and Term shortcodes - handy for profile pages or generic forms.
Update available from your WordPress dashboard.