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