]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php
WordPress 4.7.2
[autoinstalls/wordpress.git] / wp-includes / rest-api / endpoints / class-wp-rest-taxonomies-controller.php
index 0fe91ee4322397d2e7601be88d398d61a96b9ae4..b46562c9c4933dca172fc627be1edc72fb5c3f41 100644 (file)
@@ -48,6 +48,12 @@ class WP_REST_Taxonomies_Controller extends WP_REST_Controller {
                ) );
 
                register_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P<taxonomy>[\w-]+)', array(
                ) );
 
                register_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P<taxonomy>[\w-]+)', array(
+                       'args' => array(
+                               'taxonomy' => array(
+                                       'description'  => __( 'An alphanumeric identifier for the taxonomy.' ),
+                                       'type'         => 'string',
+                               ),
+                       ),
                        array(
                                'methods'         => WP_REST_Server::READABLE,
                                'callback'        => array( $this, 'get_item' ),
                        array(
                                'methods'         => WP_REST_Server::READABLE,
                                'callback'        => array( $this, 'get_item' ),