function M_remove_old_plugin($plugins) { if (array_key_exists('membership/membership.php', $plugins) && !in_array('membership.php', (array) array_map('basename', nxt_get_active_and_valid_plugins()))) { unset($plugins['membership/membership.php']); } return $plugins; }
ms_cookie_constants(); } // Define constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies(). nxt_cookie_constants(); // Define and enforce our SSL constants nxt_ssl_constants(); // Create common globals. require ABSPATH . nxtINC . '/vars.php'; // Make taxonomies and posts available to plugins and themes. // @plugin authors: warning: these get registered again on the init hook. create_initial_taxonomies(); create_initial_post_types(); // Register the default theme directory root register_theme_directory(get_theme_root()); // Load active plugins. foreach (nxt_get_active_and_valid_plugins() as $plugin) { include_once $plugin; } unset($plugin); // Load pluggable functions. require ABSPATH . nxtINC . '/pluggable.php'; require ABSPATH . nxtINC . '/pluggable-deprecated.php'; // Set internal encoding. nxt_set_internal_encoding(); // Run nxt_cache_postload() if object cache is enabled and the function exists. if (nxt_CACHE && function_exists('nxt_cache_postload')) { nxt_cache_postload(); } do_action('plugins_loaded'); // Define constants which affect functionality if not already defined. nxt_functionality_constants();