Ejemplo n.º 1
0
function kigo_on_plugin_update($current_version)
{
    if (!kigo_I18n::update_i18n_network_option()) {
        Loggly_logs::log(array('msg' => 'Failed to update network option translations', 'current_version' => $current_version));
    }
    if (strcmp($current_version, '1.0.20141002') < 0) {
        // The auto sign on table was introduced in version 1.0.20141002 2014/10/02, every previous version should create it now!
        if (!Kigo_Single_Sign_On::create_table()) {
            return false;
        }
    }
    return true;
}