mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-30 12:11:33 +01:00
REST API: Define taxonomy visibility settings in schema
For Gutenberg and other admin-type interfaces, it's useful to be able to see the visibility settings for taxonomies. The original changeset was partially included in [43445]. Merges [42729], [42730], [42973] to the 5.0 branch. Props joehoyle, TimothyBlynJacobs, pento. Fixes #42707 Built from https://develop.svn.wordpress.org/branches/5.0@43680 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
01f1bf13c3
commit
62a35c8545
@ -322,6 +322,12 @@ class WP_REST_Taxonomies_Controller extends WP_REST_Controller {
|
|||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
),
|
),
|
||||||
|
'visibility' => array(
|
||||||
|
'description' => __( 'The visibility settings for the taxonomy.' ),
|
||||||
|
'type' => 'object',
|
||||||
|
'context' => array( 'edit' ),
|
||||||
|
'readonly' => true,
|
||||||
|
),
|
||||||
'rest_base' => array(
|
'rest_base' => array(
|
||||||
'description' => __( 'REST base route for the taxonomy.' ),
|
'description' => __( 'REST base route for the taxonomy.' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-43679';
|
$wp_version = '5.0-alpha-43680';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user