OSDN Git Service

WordPressテンプレート機能更新。
authornaoki hirata <naoki@magic3.org>
Tue, 1 Aug 2017 13:00:45 +0000 (22:00 +0900)
committernaoki hirata <naoki@magic3.org>
Tue, 1 Aug 2017 13:00:45 +0000 (22:00 +0900)
include/container/baseFrameContainer.php

index a8aeaf7..4fc5891 100644 (file)
@@ -780,7 +780,9 @@ class BaseFrameContainer extends Core
                        $GLOBALS['wp'] = new WP();
                        $GLOBALS['gContentApi'] = new contentApi();                     // Magic3コンテンツAPIオブジェクト
                        $GLOBALS['gMenuApi'] = new menuApi();                   // Magic3メニュー情報APIオブジェクト
-                       
+                       // テンプレートから参照可能にする
+                       global $wp_query;
+
                        // テンプレート初期処理
                        do_action('setup_theme');
                        load_default_textdomain();                      // 言語リソースを読み込む