Changeset 46660 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 11/05/2019 09:21:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r46586 r46660 781 781 * @since 4.4.0 782 782 * 783 * @return arrayList of registered namespaces.783 * @return string[] List of registered namespaces. 784 784 */ 785 785 public function get_namespaces() { … … 1018 1018 * @type string $context Context. 1019 1019 * } 1020 * @return array Index entity1020 * @return WP_REST_Response The API root index data. 1021 1021 */ 1022 1022 public function get_index( $request ) { … … 1101 1101 * @param array $routes Routes to get data for. 1102 1102 * @param string $context Optional. Context for data. Accepts 'view' or 'help'. Default 'view'. 1103 * @return array Route data to expose in indexes.1103 * @return array[] Route data to expose in indexes, keyed by route. 1104 1104 */ 1105 1105 public function get_data_for_routes( $routes, $context = 'view' ) { … … 1132 1132 * @since 4.4.0 1133 1133 * 1134 * @param array $available Map of route to route data.1135 * @param array $routes Internal route data as an associative array.1134 * @param array[] $available Route data to expose in indexes, keyed by route. 1135 * @param array $routes Internal route data as an associative array. 1136 1136 */ 1137 1137 return apply_filters( 'rest_route_data', $available, $routes );
Note: See TracChangeset
for help on using the changeset viewer.