[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 15:35:57 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 youknowriad):
> I should've been more clear: for the purposes of shipping Gutenberg in
WordPress 5.0.
👍While this could be fine, my concern is that people new to WordPress
would have to deal with two editors while it shouldn't be that hard to
update `show_in_rest` to be opt-out for logged-in users.
Aside, In an API world (which is where we're heading), a `show_in_rest`
config doesn't make sense at all. I understand it's here to mitigate the
fact that we can unintentionally expose data but from my point of view,
exposing data should be a security/access/role/capability concern and not
a global config but that's another question obviously.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42785#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list