Sfoglia il codice sorgente

:bug: switching publicly_queryable so slugs are exposed

tags/0.9.0
j 4 anni fa
parent
commit
a811aae3d6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      plugins/cia-post-types/cia-post-types.php

+ 1
- 1
plugins/cia-post-types/cia-post-types.php Vedi File

@@ -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…
Annulla
Salva