Last active
February 15, 2020 00:53
-
-
Save felixarntz/4d6ce88173c157ebcca4ffe97e13e267 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Temporary fix Site Kit opcache_reset call, in case the function is not defined. | |
* | |
* @author Felix Arntz, Google | |
* @license Apache 2.0 | |
* @copyright 2020 Google Inc. | |
* | |
* @wordpress-plugin | |
* Plugin Name: Site Kit Fix Opcache Call (temporary) | |
* Description: Temporary fix Site Kit opcache_reset call, in case the function is not defined. | |
* Plugin URI: https://gist.github.com/felixarntz/4d6ce88173c157ebcca4ffe97e13e267 | |
* Version: 0.1.0 | |
* Author: Felix Arntz, Google | |
* Author URI: https://felix-arntz.me | |
* License: Apache License 2.0 | |
* License URI: https://www.apache.org/licenses/LICENSE-2.0 | |
*/ | |
add_action( | |
'plugins_loaded', | |
function() { | |
remove_action( 'upgrader_process_complete', 'googlesitekit_opcache_reset' ); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment