Skip to content

Instantly share code, notes, and snippets.

@afragen
Last active May 15, 2021 23:00
Show Gist options
  • Save afragen/64e4037576bd5292b5f3aeb1db39e0eb to your computer and use it in GitHub Desktop.
Save afragen/64e4037576bd5292b5f3aeb1db39e0eb to your computer and use it in GitHub Desktop.
Test updating from GitHub Updater v9.9.10 to Git Updater
<?php
/**
* Plugin Name: Test GitHub Updater to Git Updater update
* Plugin URI: https://gist.github.com/afragen/64e4037576bd5292b5f3aeb1db39e0eb
* Description: Test the update process from GitHub Updater v9.9.10 to Git Updater.
* Author: Andy Fragen
* Version: 0.1.0
* Author URI: http://thefragens.com
* Gist Plugin URI: https://gist.github.com/afragen/64e4037576bd5292b5f3aeb1db39e0eb
* License: MIT
* Requires PHP: 5.4
*/
add_filter('github_updater_set_options', function () {
return ['current_branch_github-updater' => 'develop'];
});
add_filter('gu_set_options', function () {
return ['current_branch_git-updater' => 'master'];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment