Make WordPress Core


Ignore:
Timestamp:
10/08/2018 01:49:51 PM (8 years ago)
Author:
danielbachhuber
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php

    r43445 r43680  
    323323                    'readonly'     => true,
    324324                ),
     325                'visibility'       => array(
     326                    'description'  => __( 'The visibility settings for the taxonomy.' ),
     327                    'type'         => 'object',
     328                    'context'      => array( 'edit' ),
     329                    'readonly'     => true,
     330                ),
    325331                'rest_base'            => array(
    326332                    'description'  => __( 'REST base route for the taxonomy.' ),
Note: See TracChangeset for help on using the changeset viewer.