Преглед изворни кода

:recycle: a few more p2p mappings

tags/1.0.0
J пре 4 година
родитељ
комит
efe22a1ae6
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']);

Loading…
Откажи
Сачувај