Browse Source

:recycle: altering the p2p registration order to flip-flop shorts_to_episodes and guides_to_episodes

tags/0.9.0
J 4 years ago
parent
commit
61b8fa0f06
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      plugins/cia-post-types/includes/p2p-mappings.php

+ 6
- 4
plugins/cia-post-types/includes/p2p-mappings.php View File

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

Loading…
Cancel
Save