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
<?php | |
/** | |
* Usage of 'gu_fix_repo_slug' filter. | |
* | |
* @package wordpress-plugin | |
* @link https://github.com/afragen/git-updater/issues/971 | |
*/ | |
/** | |
* Plugin Name: Change Default Content Folder |
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
<?php | |
/** | |
* Plugin Name: Show Git Updater Settings | |
* Description: Override hiding of Git Updater Settings. Use only for debugging/testing. Someone set this for a good reason. | |
* Plugin URI: https://gist.github.com/afragen/290703613c50dab70dd06992c23cdfe0 | |
* Author: Andy Fragen | |
* Author URI: https://github.com/afragen | |
* Version: 0.1 | |
* Requires PHP: 5.6 | |
* Requires at least: 5.2 |
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
<?php | |
/** | |
* Plugin Name: test | |
*/ | |
use Fragen\Git_Updater\Plugin; | |
$bookings = array( | |
'name' => 'WooCommerce Bookings', |
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
<?php | |
/** | |
* Plugin Name: Git Updater Ignore | |
* Plugin URI: https://gist.github.com/afragen/414612961ac500b652862096a54d62d7 | |
* Description: This plugin is used to set Git Updater to ignore specific repository slugs. | |
* Version: 0.3 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 5.2 | |
* Requires PHP: 5.6 |
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
<?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 |
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
/** | |
* Remove Freemius dashboard update overrides. | |
* | |
* @return void | |
*/ | |
public function allow_self_update() { | |
remove_all_filters( 'after_plugin_row_git-updater/git-updater.php' ); | |
remove_all_filters( 'after_plugin_row_git-updater-pro/git-updater.php' ); | |
add_action( |
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
<?php | |
// Prevent updating of specific dot org plugins. | |
add_filter( | |
'site_transient_update_plugins', | |
function( $transient ) { | |
$plugin_arr = [ 'test-plugin2/test-plugin2.php', 'akismet/akismet.php' ]; | |
foreach ( $plugin_arr as $plugin_file ) { | |
if ( isset( $transient->response[ $plugin_file ]->id ) | |
&& false !== strpos( $transient->response[ $plugin_file ]->id, 'w.org/plugins' ) | |
) { |
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
<?php | |
/** | |
* Rollback Update Testing | |
* | |
* @package rollback-update-testing | |
* @author Andy Fragen <[email protected]> | |
* @license MIT | |
*/ | |
/** |
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
<?php | |
/** | |
* Plugin Name: Local EDD Store | |
* Description: Set `reject_unsafe_urls` to false for $store_url. $store_url will need to be set for the URL of your local EDD store. | |
* Author: Andy Fragen | |
* Version: 0.3 | |
* Gist Plugin URI: https://gist.github.com/afragen/ed00f34f8e03aeedb96bdbf6f3e50495 | |
*/ | |
add_filter( |