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 | |
| /** | |
| * Add Plugin Dependency via REST API. | |
| * | |
| * @package Fragen\Plugin_Dependency_API | |
| * | |
| * Plugin Name: Add Plugin Dependency via REST API | |
| * Plugin URI: https://gist.github.com/afragen/ba3fc125fb0ecd242b1b162153d6adf9 | |
| * Description: Add plugin dependency data to Dependencies tab via REST API endpoint and allow for Install Now button to function. | |
| * Version: 0.11.3 |
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: Change WP Debugging Defaults | |
| * Plugin URI: https://gist.github.com/afragen/5c79984f154911be171c80468f676572 | |
| * Description: Single use plugin and filter showing how to change WP Debugging default constants. | |
| * Version: 0.1 | |
| * Author: Andy Fragen | |
| * License: MIT | |
| * Requires at least: 5.2 | |
| * Requires PHP: 7.1 |
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
| /** | |
| * Moves a directory from one location to another via the rename() PHP function. | |
| * If the renaming failed, falls back to copy_dir(). | |
| * | |
| * Assumes that WP_Filesystem() has already been called and setup. | |
| * | |
| * @since 5.9.0 | |
| * | |
| * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. | |
| * |
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
| public function delete_temp_backup( $args ) { | |
| global $wp_filesystem; | |
| if ( empty( $args['slug'] ) || empty( $args['dir'] ) ) { | |
| return false; | |
| } | |
| $temp_backup = trailingslashit( $wp_filesystem->wp_content_dir() . "upgrade/temp-backup/{$args['dir']}/{$args['slug']}" ); | |
| return $this->recursive_directory_delete( $temp_backup ); |
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
| add_filter( | |
| 'subdirectory_fix_plugins_url', | |
| function() { | |
| return [ 'wpforms-lite', 'query-monitor' ]; | |
| } | |
| ); | |
| add_filter( | |
| 'subdirectory_fix_template', | |
| function() { |
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 |