Просмотр исходного кода

Merge branch 'more_p20' of craft-in-america/vue-wp into dev

tags/1.0.0
maeda 4 лет назад
Родитель
Сommit
34e8feb0f8
1 измененных файлов: 3 добавлений и 2 удалений
  1. 3
    2
      plugins/cia-post-types/includes/p2p-mappings.php

+ 3
- 2
plugins/cia-post-types/includes/p2p-mappings.php Просмотреть файл

@@ -20,10 +20,11 @@ function register_connections_for($type, $from_types) {
20 20
 }
21 21
 
22 22
 function register_all_one_offs() {
23
-    register_connections_for('object', ['object', 'exhibition', 'guide', 'technique']);
23
+    register_connections_for('object', ['object', 'exhibition', 'guide', 'technique', 'post']);
24 24
     register_connections_for('artist', ['artist', 'object', 'technique']);
25 25
     register_connections_for('short', ['technique', 'short', 'object', 'guide', 'technique']);
26
-    register_connections_for('guide', ['technique']);
26
+    register_connections_for('technique', ['technique', 'post']);
27
+    register_connections_for('guide', ['technique', 'exhibition', 'post']);
27 28
     register_connections_for('exhibition', ['technique']);
28 29
     register_connections_for('event', ['event', 'object', 'guide', 'technique']);
29 30
     register_connections_for('episode', ['object', 'episode', 'guide', 'technique']);

Загрузка…
Отмена
Сохранить