From 1127059a9975dc470e78e0bf17f9d4cbdaf7a402 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 19 Apr 2004 05:19:45 +0000 Subject: [PATCH] shutdown action hook. git-svn-id: http://svn.automattic.com/wordpress/trunk@1097 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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