Opened 9 years ago
Closed 8 years ago
#42707 closed enhancement (fixed)
Show taxonomy visibility information in the REST API
| Reported by: | pento | Owned by: | joehoyle |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.0 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | rest-api |
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
@
9 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
@
9 years ago
Added a clean patch and also added JSON Schema for the visibility properties, description taken from the WP documentation.
#8
@
8 years ago
- Keywords has-patch has-unit-tests removed
- Resolution fixed
- Status closed → reopened
Whee!
#10
@
8 years ago
- Resolution fixed
- Status closed → 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
@
8 years ago
- Resolution fixed
- Status closed → reopened
Re-opening for backporting against the 5.0 branch.
#14
@
8 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Gutenberg references:
https://github.com/WordPress/gutenberg/issues/2450
https://github.com/WordPress/gutenberg/pull/2654