Skip to content

Instantly share code, notes, and snippets.

@carolinan
Forked from afragen/rollback-testing.php
Created May 18, 2021 17:28
Show Gist options
  • Save carolinan/222e5f37f93691280721bb8bec786357 to your computer and use it in GitHub Desktop.
Save carolinan/222e5f37f93691280721bb8bec786357 to your computer and use it in GitHub Desktop.
Plugin to simulate plugin/theme update failure for testing Rollback Update Failure feature plugin.
<?php
/**
* Rollback Update Testing
*
* @package rollback-update-testing
* @author Andy Fragen <andy@thefragens.com>
* @license MIT
*/
/**
* Plugin Name: Rollback Update Testing
* Plugin URI: https://gist.github.com/afragen/80b68a6c8826ab37025b05d4519bb4bf
* Description: This plugin is used for Rollback Update Failure feature plugin testing to simulate a failure.
* Version: 0.1
* Author: Andy Fragen
* License: MIT
* Requires at least: 5.2
* Requires PHP: 5.6
* Gist Plugin URI: https://gist.github.com/afragen/80b68a6c8826ab37025b05d4519bb4bf
*/
add_filter( 'rollback_update_testing', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment