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:
bceb35a
)
WordPressテンプレート機能更新。
author
naoki hirata
<naoki@magic3.org>
Sat, 8 Jul 2017 23:49:14 +0000
(08:49 +0900)
committer
naoki hirata
<naoki@magic3.org>
Sat, 8 Jul 2017 23:49:14 +0000
(08:49 +0900)
include/wp/contentApi.php
patch
|
blob
|
history
diff --git
a/include/wp/contentApi.php
b/include/wp/contentApi.php
index
3d856f5
..
87601ca
100644
(file)
--- a/
include/wp/contentApi.php
+++ b/
include/wp/contentApi.php
@@
-262,6
+262,9
@@
class ContentApi extends BaseApi
*/
function getCategory($contentId)
{
+ // ##### 現在ブログコンテンツのみ対応 #####
+ if ($this->contentType != M3_VIEW_TYPE_BLOG) return array();
+
// コンテンツIDが0のときは「未分類」カテゴリーを返す
if ($contentId == 0){
// カテゴリー情報をWP_Termオブジェクトに変換して格納