function jr_ps_show_plugin() { global $wp_list_table; global $jr_ps_path; $wp_list_table->items[jr_ps_plugin_basename()] = get_plugin_data($jr_ps_path . basename(jr_ps_plugin_basename())); uasort($wp_list_table->items, 'jr_ps_sort_plugins'); return; }
so warn Admin. */ $internal_settings['warning_privacy'] = TRUE; } update_option('jr_ps_internal_settings', $internal_settings); } require_once jr_ps_path() . 'includes/common-functions.php'; jr_ps_init_settings('jr_ps_settings', array('private_site' => FALSE, 'reveal_registration' => TRUE, 'landing' => 'return', 'specific_url' => '', 'wplogin_php' => FALSE, 'custom_login' => FALSE, 'login_url' => '', 'custom_login_onsite' => TRUE, 'excl_url' => array(), 'excl_url_prefix' => array(), 'excl_home' => FALSE, 'check_role' => TRUE, 'override_omit' => FALSE), array('user_submenu')); $settings = get_option('jr_ps_settings'); if (is_admin()) { require_once jr_ps_path() . 'includes/all-admin.php'; /* Support WordPress Version 3.0.x before is_network_admin() existed */ if (function_exists('is_network_admin') && is_network_admin()) { // Network Admin pages in Network/Multisite install if (function_exists('is_plugin_active_for_network') && is_plugin_active_for_network(jr_ps_plugin_basename())) { // Network Admin Settings page for Plugin require_once jr_ps_path() . 'includes/net-settings.php'; } } else { // Regular (non-Network) Admin pages // Settings page for Plugin require_once jr_ps_path() . 'includes/admin-settings.php'; } // All changes to all Admin-Installed Plugins pages require_once jr_ps_path() . 'includes/installed-plugins.php'; } else { /* Public WordPress content, i.e. - not Admin pages Do nothing if Private Site setting not set by Administrator */ if ($settings['private_site']) {