OSDN Git Service

シャットダウンイベント追加。
[magic3/magic3.git] / include / container / baseFrameContainer.php
index 60334c8..b16c68b 100644 (file)
@@ -707,6 +707,7 @@ class BaseFrameContainer extends Core
                        require_once($this->gEnv->getWordpressRootPath() . '/wp-includes/functions.php');
                        require_once($this->gEnv->getWordpressRootPath() . '/wp-includes/default-filters.php');
                        require_once($this->gEnv->getWordpressRootPath() . '/wp-includes/l10n.php');
+                       require_once($this->gEnv->getWordpressRootPath() . '/wp-includes/class-wp-error.php');
                        require_once($this->gEnv->getWordpressRootPath() . '/wp-includes/class-wp.php');
                        require_once($this->gEnv->getWordpressRootPath() . '/wp-includes/class-wp-locale.php');
                        require_once($this->gEnv->getWordpressRootPath() . '/wp-includes/class-wp-user.php');
@@ -767,7 +768,9 @@ 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は未使用?