function scoper_refresh_options()
{
    if (IS_MU_RS && agp_is_plugin_network_active(SCOPER_BASENAME)) {
        scoper_retrieve_options(true);
        scoper_refresh_options_sitewide();
    }
    scoper_retrieve_options(false);
    scoper_refresh_default_options();
}
}
if (is_admin() || defined('XMLRPC_REQUEST')) {
    // Early bailout for problematic 3rd party plugin ajax calls
    if (strpos($_SERVER['SCRIPT_NAME'], 'wp-wall-ajax.php')) {
        return;
    }
} elseif (!$bail) {
    require_once dirname(__FILE__) . '/feed-interceptor_rs.php';
    // must define get_currentuserinfo early
}
//log_mem_usage_rs( 'initial requires' );
if (!$bail) {
    require_once dirname(__FILE__) . '/defaults_rs.php';
    //log_mem_usage_rs( 'defaults_rs' );
    if (IS_MU_RS && agp_is_plugin_network_active(SCOPER_BASENAME)) {
        scoper_refresh_options_sitewide();
    }
    //log_mem_usage_rs( 'refresh_options_sitewide' );
    //scoper_refresh_default_options();
    // if role options were just updated via http POST, use new values rather than loading old option values from DB
    // These option values are used in WP_Scoped_User constructor
    if (is_admin() && isset($_POST['enable_group_roles']) && 0 === strpos($GLOBALS['plugin_page_cr'], 'rs-')) {
        scoper_use_posted_init_options();
    } else {
        scoper_get_init_options();
    }
    if (IS_MU_RS && agp_is_plugin_network_active(SCOPER_BASENAME)) {
        // If groups are sitewide, default groups must also be defined/applied sitewide (and vice versa)
        global $scoper_sitewide_groups, $scoper_options_sitewide;
        if ($scoper_sitewide_groups = scoper_get_site_option('mu_sitewide_groups')) {
            $scoper_options_sitewide['default_groups'] = true;
function scoper_refresh_options()
{
    if (IS_MU_RS) {
        scoper_retrieve_options(true);
        scoper_refresh_options_sitewide();
    }
    scoper_retrieve_options(false);
    scoper_refresh_default_options();
}