Opened 7 years ago
Closed 6 years ago
#42707 closed enhancement (fixed)
Show taxonomy visibility information in the REST API
Reported by: | pento | Owned by: | joehoyle |
---|---|---|---|
Milestone: | 5.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | rest-api | Cc: |
Description
In order to determine whether to show the meta box for a taxonomy, Gutenberg needs to know its show_ui
setting.
While we're adding that, lets expose all of the visibility settings.
Attachments (4)
Change History (19)
#2
@
7 years ago
I don't think the context conditional is required there, it should be stripped out of non edit contexts by the controller in filter_response_by_context()
.
#3
@
7 years ago
Added a clean patch and also added JSON Schema for the visibility
properties, description taken from the WP documentation.
#8
@
7 years ago
- Keywords has-patch has-unit-tests removed
- Resolution fixed deleted
- Status changed from closed to reopened
Whee!
#10
@
7 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
There's a typo in the first description string:
'The visibility settings for the taxomonmy.'
Should be:
'The visibility settings for the taxonomy.'
#13
@
6 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Re-opening for backporting against the 5.0
branch.
#14
@
6 years ago
- Keywords has-patch added
As it turns out, part of this landed in r43445: https://core.trac.wordpress.org/changeset/43445/branches/4.9/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php
42707.4.diff is an application of the remainder against the 5.0
branch.
Gutenberg references:
https://github.com/WordPress/gutenberg/issues/2450
https://github.com/WordPress/gutenberg/pull/2654