[wp-trac] [WordPress Trac] #42785: Change default of `show_in_rest` in register_post_type and register_taxonomy
WordPress Trac
noreply at wordpress.org
Mon Mar 5 16:18:20 UTC 2018
#42785: Change default of `show_in_rest` in register_post_type and
register_taxonomy
-----------------------------------------------------+--------------------
Reporter: joehoyle | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.9.5
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion reporter-feedback | Focuses:
-----------------------------------------------------+--------------------
Comment (by Rahmohn):
Replying to [comment:9 youknowriad]:
> > I propose we default show_in_rest to true in the following scenarios:
>
> > Object types registered with public => true (only).
> > Object types registered with publicly_queryable => true.
>
> > I have other future ideas for further cases (including authenticated-
only cases) but I think this is a good start.
>
> Hi!
>
> Thanks for working on this, this will greatly help Gutenberg.
>
> To the point above, I think it's important that we follow-up with
another patch to force `show_in_rest` to true (for public CPTs and
taxonomies) for loggedin users (other than subscribers) and not being only
a default value, because people will expect to be able to use Gutenberg
for all CPTs in the backend no matter the value set for `show_in_rest`.
I agree with you.
So show_in_rest will be true in the following scenarios:
* Object types registered with public => true (only).
* Object types registered with publicly_queryable => true.
* In the backend (logged users - other than subscribers) for public CPTs
and taxonomies no matter the value set for 'show_in_rest'
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42785#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list