static function activate_manage()
{
if (did_action('init') || current_filter() == 'init') {
self::activate_module('manage', false, false);
} else {
if (!has_action('init', array(__CLASS__, 'activate_manage'))) {
add_action('init', array(__CLASS__, 'activate_manage'));
}
}
}
/** * Runs before bumping version numbers up to a new version * @param (string) $version Version:timestamp * @param (string) $old_version Old Version:timestamp or false if not set yet. * @return null [description] */ public static function do_version_bump($version, $old_version) { if (!$old_version) { // For new sites // Setting up jetpack manage Jetpack::activate_manage(); } }