This file contains 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 | |
/** | |
* Auto-flush object cache. | |
* | |
* @package Fragen\Auto_Flush_Cache | |
* | |
* Plugin Name: Auto-Flush Object Cache | |
* Plugin URI: https://gist.github.com/afragen/d46d3cc2c7e07d99f921560dfbb70246 | |
* Description: Auto-flush the object cache when error log records PHP Fatal error for allowed memory size. | |
* Version: 0.7.0 |
This file contains 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 <andy@thefragens.com> | |
* @license MIT | |
*/ | |
/** |
This file contains 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 FastSpring popup store script for Git Updater. | |
* | |
* @package FastSpringPopUpStore | |
* | |
* Plugin Name: FastSpring Popup Store for Git Updater | |
* Plugin URI: https://gist.github.com/afragen/e7819dd1e17be5792c299dbef989d446 | |
* Description: Add FastSpring popup store javascript for Git Updater. | |
* Version: 0.1.0 |
This file contains 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 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
/** | |
* Trick `WP_Automatic_Updater` into thinking there is no existing lock. | |
* | |
* By default, the auto-updater will only run once every hour even if | |
* the cron job is manually fired. That makes it hard to run multiple tests | |
* in a short period of time. | |
*/ | |
add_filter( | |
'option_auto_updater.lock', | |
function ($value) { |
This file contains 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 | |
/** | |
* Gist oEmbed. | |
* | |
* @package Fragen\Gist_OEmbed | |
* | |
* Plugin Name: Gist oEmbed | |
* Plugin URI: https://gist.github.com/afragen/36ab01da116aadd27a3f4d85cce90390 | |
* Description: oEmbed Gist or files within Gists. | |
* Version: 0.6.2 |
This file contains 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 | |
/** | |
* Auto-update fatal error check. | |
* | |
* @package AutoUpdateFatalErrorCheck | |
* | |
* Plugin Name: Auto-update Fatal Error Check | |
* Plugin URI: https://gist.github.com/afragen/518819349528dba930cf7845180d5274 | |
* Description: Check for a PHP error on plugin auto-update and deactivate plugin if one exists. | |
* Version: 0.4.2 |
This file contains 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 | |
/** | |
* Auto-update fatal error check test plugin. | |
* | |
* @package AutoUpdateFatalErrorCheck | |
* | |
* Plugin Name: Auto-update Fatal Error Check Test Plugin | |
* Plugin URI: https://github.com/afragen/fatal-plugin | |
* Description: Set local version to 0 and comment code from plugin for testing. | |
* Version: 0.1.1 |
This file contains 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: GlotPress for Git Updater | |
* Plugin URI: https://gist.github.com/afragen/4574e1ce54a621351e5eb18ac686f8f3 | |
* Description: This plugin is used for site testing. | |
* Version: 0.1 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 5.2 | |
* Requires PHP: 7.1 |
This file contains 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 the following to your theme's functions.php | |
add_filter( 'tribe_ical_properties', 'tribe_ical_outlook_modify', 10, 2 ); | |
function tribe_ical_outlook_modify( $content ) { | |
$properties = preg_split ( '/$\R?^/m', $content ); | |
$searchValue = "X-WR-CALNAME"; | |
$fl_array = preg_grep('/^' . "$searchValue" . '.*/', $properties); | |
$key = array_values($fl_array); | |
$keynum = key($fl_array); |