From 9afccbc6d1548bd202c3bf7ca8ef81c0f339ad04 Mon Sep 17 00:00:00 2001 From: naoki hirata Date: Wed, 1 Nov 2017 21:55:39 +0900 Subject: [PATCH] =?utf8?q?=E3=82=B7=E3=83=A3=E3=83=83=E3=83=88=E3=83=80?= =?utf8?q?=E3=82=A6=E3=83=B3=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88=E8=BF=BD?= =?utf8?q?=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- include/container/baseFrameContainer.php | 1 + include/wp/wp-includes/load.php | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/include/container/baseFrameContainer.php b/include/container/baseFrameContainer.php index 351ef56c..b16c68b9 100644 --- a/include/container/baseFrameContainer.php +++ b/include/container/baseFrameContainer.php @@ -770,6 +770,7 @@ class BaseFrameContainer extends Core wp_initial_constants(); // WordPressその他定義値設定 wp_cookie_constants(); // クッキー用定義 create_initial_post_types(); // WP_Post型データ型登録 + register_shutdown_function('shutdown_action_hook'); // 終了時イベント登録 // プラグイン初期化 $GLOBALS['wp_plugin_paths'] = array(); // $wp_plugin_pathsは未使用? diff --git a/include/wp/wp-includes/load.php b/include/wp/wp-includes/load.php index 36a7cdbc..dd2984cb 100644 --- a/include/wp/wp-includes/load.php +++ b/include/wp/wp-includes/load.php @@ -673,16 +673,17 @@ function wp_magic_quotes() { * @since 1.2.0 * @access private */ -//function shutdown_action_hook() { -// /** -// * Fires just before PHP shuts down execution. -// * -// * @since 1.2.0 -// */ -// do_action( 'shutdown' ); -// +function shutdown_action_hook() { + /** + * Fires just before PHP shuts down execution. + * + * @since 1.2.0 + */ + // WooCommerceセッション保存処理等 + do_action( 'shutdown' ); + // wp_cache_close(); -//} +} /** * Copy an object. -- 2.11.0