Changeset 52068 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 11/09/2021 01:57:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r51962 r52068 1404 1404 ); 1405 1405 1406 $allow_batch = false; 1407 1406 1408 if ( isset( $this->route_options[ $route ] ) ) { 1407 1409 $options = $this->route_options[ $route ]; … … 1410 1412 $data['namespace'] = $options['namespace']; 1411 1413 } 1414 1415 $allow_batch = isset( $options['allow_batch'] ) ? $options['allow_batch'] : false; 1412 1416 1413 1417 if ( isset( $options['schema'] ) && 'help' === $context ) { … … 1430 1434 'methods' => array_keys( $callback['methods'] ), 1431 1435 ); 1436 1437 $callback_batch = isset( $callback['allow_batch'] ) ? $callback['allow_batch'] : $allow_batch; 1438 1439 if ( $callback_batch ) { 1440 $endpoint_data['allow_batch'] = $callback_batch; 1441 } 1432 1442 1433 1443 if ( isset( $callback['args'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.