Last active
June 18, 2018 13:13
-
-
Save JudeRosario/757446f38325b277b6244400a10bff81 to your computer and use it in GitHub Desktop.
Jetpack + Keyy
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: Keyy compat fix for Jetpack | |
*/ | |
add_action('plugins_loaded', 'keyy_compat'); | |
function keyy_compat() { | |
if ( is_multisite() && ! is_main_site() ) { | |
switch_to_blog( $this->get_main_blog_id() ); | |
$return = set_transient( 'brute_use_math', 0, 24 * HOUR_IN_SECONDS ); | |
restore_current_blog(); | |
return $return; | |
} | |
return set_transient( 'brute_use_math', 0, 24 * HOUR_IN_SECONDS ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment