-
-
Notifications
You must be signed in to change notification settings - Fork 0
Auto Updates
MXRoute Mailer includes a GitHub-based auto-updater that checks for new releases and allows you to update directly from your WordPress dashboard.
The plugin uses WordPress's built-in plugin update system with a custom updater that:
- Checks the GitHub API for new releases periodically
- Compares the latest release version with your installed version
- Shows an update notification in your WordPress dashboard when a new version is available
- Downloads and installs the update when you click "Update Now"
WordPress checks for plugin updates automatically (typically every 12 hours). To check manually:
- Go to Dashboard > Updates
- Scroll down to the Plugins section
- MXRoute Mailer will appear if an update is available
Alternatively, go to Plugins and click Check for updates.
- When an update is available, you'll see a notification on the Plugins page
- Click Update Now next to MXRoute Mailer
- The update downloads from GitHub and installs automatically
wp plugin update mxroute-mailerIf automatic updates don't work:
- Download the latest release from GitHub Releases
- Extract the zip file
- Replace the
mxroute-mailerfolder in/wp-content/plugins/with the new version - The update is complete - no database migration needed (it runs automatically)
Starting with v1.2.13, release zips contain a single top-level folder named mxroute-mailer/. This ensures WordPress extracts the update into the existing plugin directory.
If you previously installed an update that created a folder like mxroute-mailer-v1.2.7/, the plugin was deactivated because WordPress could not find it in the expected location. To fix this:
- Deactivate and delete the
mxroute-mailer-v1.2.x/folder from/wp-content/plugins/ - Install the latest release zip normally
- Activate MXRoute Mailer
The updater uses WordPress's standard version comparison, which follows PHP's version_compare() rules:
-
1.2.4is newer than1.2.3 -
1.3.0is newer than1.2.4 -
2.0.0is newer than1.9.9
Releases use semantic versioning with a v prefix:
-
v1.2.4- Version 1.2.4 -
v1.3.0- Version 1.3.0 (new features) -
v2.0.0- Version 2.0.0 (major release)
- Clear transients: Go to Dashboard > Updates and click "Check again"
- Check GitHub API: The updater caches results for 12 hours
- Verify version: Make sure your installed version is older than the latest release
- Check file permissions: The plugin directory must be writable by WordPress
-
Check GitHub access: Your server must be able to reach
api.github.com - Manual update: Download and install the release zip manually
This usually means the update was extracted into a versioned folder like mxroute-mailer-v1.2.x/ instead of mxroute-mailer/. See Release Zip Layout above for the fix.
This usually means:
- Your server can't reach GitHub (firewall, DNS issue)
- The GitHub API is rate-limited (rare)
- The repository is private (it should be public)
Check if your server can reach GitHub:
curl -I https://api.github.com/repos/richardkentgates/mxroute-mailer/releases/latest- Releases are built by GitHub Actions CI/CD
- Each push to
devruns PHP syntax lint, PHPUnit, zizmor workflow analysis, Semgrep PHP security scan, CodeQL analysis, and a pinned-Actions check - The zip file is attached to the GitHub release, not hosted externally
- Version comparison prevents accidental downgrades
- Starting with
v1.2.19, each release includes a SHA-256 checksum file; the plugin verifies the downloaded zip against this checksum before WordPress installs the update
If you prefer to update manually, you can disable WordPress auto-updates for this plugin:
- Go to Plugins
- Click Disable auto-updates next to MXRoute Mailer
Or add to wp-config.php:
add_filter( 'auto_update_plugin', function( $update, $item ) {
if ( $item->slug === 'mxroute-mailer' ) {
return false;
}
return $update;
}, 10, 2 );