[wp-trac] [WordPress Trac] #42785: Change default of `show_in_rest` in register_post_type and register_taxonomy

WordPress Trac noreply at wordpress.org
Fri Mar 30 14:38:14 UTC 2018


#42785: Change default of `show_in_rest` in register_post_type and
register_taxonomy
-------------------------------------------------+-------------------------
 Reporter:  joehoyle                             |       Owner:  pento
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.9.6
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by danielbachhuber):

 I'm unconvinced that `show_in_rest` should become opt-out instead of opt-
 in.

 Given custom post types probably have custom editor UI (metaboxes and
 otherwise), it seems unlikely that Gutenberg will be a drop-in replacement
 for the existing UI. Also, I'm concerned we'd unintentionally expose data
 we don't mean to expose.

 Lastly, such a significant change ''certainly'' shouldn't be in a minor
 release.

 For the purposes of Gutenberg, loading the Classic Editor for post types
 with `show_in_rest=false` seems sufficient to me.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42785#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list