[wp-meta] [Making WordPress.org] #4048: WordCamp.org: WordCamps with non-public statuses are exposed in REST API
Making WordPress.org
noreply at wordpress.org
Tue Apr 23 19:59:34 UTC 2019
#4048: WordCamp.org: WordCamps with non-public statuses are exposed in REST API
-------------------------------------------------+-------------------------
Reporter: sippis | Owner: sippis
Type: defect | Status: assigned
Priority: normal | Milestone:
Component: WordCamp Site & Plugins | Resolution:
Keywords: good-first-bug has-patch needs- |
testing |
-------------------------------------------------+-------------------------
Changes (by sippis):
* keywords: needs-patch good-first-bug => good-first-bug has-patch needs-
testing
Comment:
Patch add our own `check_read_permission` function to our custom
`WordCamp_REST_WordCamps_Controller` class. Our custom functionality
checks the post status against
`WordCamp_Loader::get_public_post_statuses()` list added with `wcpt-
cancelled` status and fallbacks to default
`WP_REST_Posts_Controller::check_read_permission` when post status is
readbale.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4048#comment:7>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list