From 48d9da3180a168062274b40c3f8e12b380b03371 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 19 Apr 2004 05:19:45 +0000 Subject: [PATCH] shutdown action hook. git-svn-id: https://develop.svn.wordpress.org/trunk@1097 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index 283aca9c51..ce1c07cf8a 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -76,4 +76,10 @@ if (!strstr($_SERVER['REQUEST_URI'], 'wp-admin/plugins.php') && get_settings('ac include(ABSPATH . 'wp-content/plugins/' . $plugin); } } -?> + +function shutdown_action_hook() { + do_action('shutdown', ''); +} +register_shutdown_function('shutdown_action_hook'); + +?> \ No newline at end of file