Exemplo n.º 1
0
function stc_followers_activation_check()
{
    if (function_exists('stc_version') && function_exists('stc_publish_activation_check')) {
        if (version_compare(stc_version(), '0.10', '>=')) {
            return;
        }
    }
    deactivate_plugins(basename(__FILE__));
    // Deactivate ourself
    wp_die("The Simple Twitter Connect and STC-Publish plugins must both be activated before this plugin will run.");
}
Exemplo n.º 2
0
function stc_login_activation_check()
{
    if (function_exists('stc_version')) {
        if (version_compare(stc_version(), '0.1', '>=')) {
            return;
        }
    }
    deactivate_plugins(basename(__FILE__));
    // Deactivate ourself
    wp_die("The base STC plugin must be activated before this plugin will run.");
}
Exemplo n.º 3
0
function stc_comm_activation_check()
{
    if (function_exists('stc_version')) {
        if (version_compare(stc_version(), '0.1', '>=')) {
            // default options set
            $options = get_option('stc_options');
            if (!$options['comment_text']) {
                $options['comment_text'] = 'Just left a comment on %';
            }
            update_option('stc_options', $options);
            return;
        }
    }
    deactivate_plugins(basename(__FILE__));
    // Deactivate ourself
    wp_die("The base stc plugin must be activated before this plugin will run.");
}