You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is there a way when updating a plugin with the repo content on github to exclude one settings file? It should be not synchronised, neither deleted.
When having this settings file (settings.php) in my plugin and update the plugin, it gets deleted every time, although I have .gitattributes file in my github repo with this content "settings.php export-ignore".
Thanks in advance!
The text was updated successfully, but these errors were encountered:
nebestudio
changed the title
<?php define('REPO_URL', 'https://github.com/nebestudio/model-comparator-ro-dev'); define('REPO_NAME', 'model-comparator-ro-dev'); define('REPO_BRANCH', 'main'); define('REPO_TOKEN', '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');
Exclude repo file when updating my plugin
Dec 13, 2023
It's been a while since I've looked at the relevant part of WordPress core, but I think that the WP plugin updater deletes the entire directory of the old version before installing a new version. So you can't preserve a file in the plugin directory even if the update doesn't include a new version of that file. It will get deleted anyway.
If you really have to keep a specific file unchanged, you might have to write a custom plugin update installer. PUC doesn't handle that part, it just hands the update to WordPress core.
Hello,
is there a way when updating a plugin with the repo content on github to exclude one settings file? It should be not synchronised, neither deleted.
When having this settings file (settings.php) in my plugin and update the plugin, it gets deleted every time, although I have .gitattributes file in my github repo with this content "settings.php export-ignore".
Thanks in advance!
The text was updated successfully, but these errors were encountered: