- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r43463 r43571 59 59 60 60 register_rest_route( 61 $this->namespace, '/' . $this->rest_base, array( 61 $this->namespace, 62 '/' . $this->rest_base, 63 array( 62 64 array( 63 65 'methods' => WP_REST_Server::READABLE, … … 87 89 } 88 90 register_rest_route( 89 $this->namespace, '/' . $this->rest_base . '/(?P<id>[\d]+)', array( 91 $this->namespace, 92 '/' . $this->rest_base . '/(?P<id>[\d]+)', 93 array( 90 94 'args' => array( 91 95 'id' => array( … … 1692 1696 ); 1693 1697 } 1694 1695 1698 } 1696 1699
Note: See TracChangeset
for help on using the changeset viewer.