v1.8.10#232
Merged
Merged
Conversation
Update plugin version to 1.8.10, delete obsolete core/php/.htaccess, and add a cleanup step in plugin_info/install.php. The new code iterates a list of legacy paths (including core/php/.htaccess), logs actions, attempts removal via an escaped exec('rm -rf ...'), and logs success or failure, with exception handling. Existing post-update behavior (AI Stats equipment creation) is preserved.
Add counters for removed paths and errors during the update cleanup loop and increment them on success/failure. Remove verbose per-path debug logs for non-existent paths and instead emit a concise summary debug log reporting total paths checked, removed and any errors. Preserve individual info/warning logs for successful removals and failures, and keep existing exception handling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a minor version update for the TTS Cast plugin, primarily focused on improving plugin maintenance by cleaning up obsolete files during updates. The most significant change is the automated removal of the now-unnecessary
.htaccessfile from the plugin's core PHP directory.Maintenance and cleanup improvements:
ttscast_update()ininstall.phpthat automatically removes obsolete files and directories (currently targetingcore/php/.htaccess) during plugin updates. This helps keep the plugin directory clean and avoids potential security or compatibility issues with legacy files..htaccessfile fromcore/php/, as it is no longer needed.Version update:
info.jsonfrom1.8.9to1.8.10to reflect these maintenance changes.