OSDN Git Service
(root)
/
magic3
/
magic3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b972f4
)
WordPressテンプレート機能更新。
author
naoki hirata
<naoki@magic3.org>
Tue, 1 Aug 2017 13:00:45 +0000
(22:00 +0900)
committer
naoki hirata
<naoki@magic3.org>
Tue, 1 Aug 2017 13:00:45 +0000
(22:00 +0900)
include/container/baseFrameContainer.php
patch
|
blob
|
history
diff --git
a/include/container/baseFrameContainer.php
b/include/container/baseFrameContainer.php
index
a8aeaf7
..
4fc5891
100644
(file)
--- a/
include/container/baseFrameContainer.php
+++ b/
include/container/baseFrameContainer.php
@@
-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(); // 言語リソースを読み込む