1.2 KiB
1.2 KiB
GU Branch Fix
A simple WordPress plugin to fix Git Updater branch issues for plugins using 'main' instead of 'master'.
Description
This small utility plugin addresses an issue with Git Updater where it defaults to using 'master' as the primary branch name, while many modern repositories use 'main' as their primary branch.
The plugin adds filters to:
- Change the branch from 'master' to 'main' for specific plugins
- Fix API URLs by replacing '/master/' with '/main/'
- Fix download links by replacing '/master.zip' with '/main.zip'
Installation
- Upload the plugin files to the
/wp-content/plugins/gu-branch-fix
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- No configuration is needed - it works automatically.
Usage
This plugin is specifically designed to work with the "Fix 'Plugin file does not exist' Notices" plugin, but can be easily modified to work with any plugin that uses 'main' as its primary branch.
To add support for other plugins, simply modify the conditional checks in the filter functions.
Changelog
1.0.0
- Initial release
License
This plugin is licensed under the GPL v2 or later.