Selaa lähdekoodia

:bug: switching publicly_queryable so slugs are exposed

tags/0.9.0
j 4 vuotta sitten
vanhempi
commit
a811aae3d6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      plugins/cia-post-types/cia-post-types.php

+ 1
- 1
plugins/cia-post-types/cia-post-types.php Näytä tiedosto

@@ -54,7 +54,7 @@ class PostType {
54 54
             'supports'           => ['title', 'editor', 'revisions', 'thumbnail'],
55 55
             'has_archive'        => false,
56 56
             'show_in_rest'       => true,
57
-            'publicly_queryable' => false
57
+            'publicly_queryable' => true, // Needed for slug edit
58 58
         ];
59 59
 
60 60
         register_post_type( $this->post_type, $args );

Loading…
Peruuta
Tallenna