Explorar el Código

:recycle: adjusting the p2p order again

tags/0.9.0
J hace 4 años
padre
commit
6441ff4c32
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3
    2
      plugins/cia-post-types/includes/p2p-mappings.php

+ 3
- 2
plugins/cia-post-types/includes/p2p-mappings.php Ver fichero

22
 function register_all_one_offs() {
22
 function register_all_one_offs() {
23
     register_connections_for('artist', ['artist']);
23
     register_connections_for('artist', ['artist']);
24
     register_connections_for('short', ['technique']);
24
     register_connections_for('short', ['technique']);
25
+    register_connections_for('guide', ['episode']);
25
     register_connections_for('event', ['event']);
26
     register_connections_for('event', ['event']);
26
 }
27
 }
27
 
28
 
33
         'exhibition',
34
         'exhibition',
34
         'post',
35
         'post',
35
         'technique',
36
         'technique',
36
-        'guide',
37
         'short',
37
         'short',
38
+        'guide',
38
     ];
39
     ];
39
 
40
 
40
     // Kick-off by assigning to artist
41
     // Kick-off by assigning to artist
42
     register_connections_for($artist, $connection_stack);
43
     register_connections_for($artist, $connection_stack);
43
 
44
 
44
     /** Pop the end for now... */ 
45
     /** Pop the end for now... */ 
45
-    $short = array_pop($connection_stack);
46
     $guide = array_pop($connection_stack);
46
     $guide = array_pop($connection_stack);
47
     
47
     
48
     $episode = array_shift($connection_stack);
48
     $episode = array_shift($connection_stack);
49
     register_connections_for($episode, $connection_stack);
49
     register_connections_for($episode, $connection_stack);
50
     
50
     
51
+    $short = array_pop($connection_stack);
51
     $technique = array_pop($connection_stack);
52
     $technique = array_pop($connection_stack);
52
     
53
     
53
     // Remaining: ['event', 'exhibition', 'post']
54
     // Remaining: ['event', 'exhibition', 'post']

Loading…
Cancelar
Guardar