/** * GP run route * * @since 1.0.0 */ function gp_run_route() { gp_populate_notices(); global $wp; if (is_glotpress()) { GP::$router->route(); } }
} } } unset($plugins, $plugin); GP::$router->set_default_routes(); do_action('plugins_loaded'); if (defined('GP_INSTALLING') && GP_INSTALLING) { return; } else { define('GP_INSTALLING', false); } if (!defined('GP_ROUTING')) { define('GP_ROUTING', false); } if ((!defined('GP_INSTALLING') || !GP_INSTALLING) && !gp_is_installed()) { if (GP_ROUTING) { $install_uri = preg_replace('|/[^/]+?$|', '/', $_SERVER['PHP_SELF']) . 'install.php'; header('Location: ' . $install_uri); } return; } gp_populate_notices(); function gp_shutdown_action_hook() { do_action('shutdown'); } register_shutdown_function('gp_shutdown_action_hook'); do_action('init'); if (GP_ROUTING) { GP::$router->route(); }