Changeset 61429 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 01/05/2026 04:31:14 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r61428 r61429 1375 1375 $response = new WP_REST_Response( $available ); 1376 1376 1377 $fields = isset( $request['_fields'] ) ? $request['_fields'] :'';1377 $fields = $request['_fields'] ?? ''; 1378 1378 $fields = wp_parse_list( $fields ); 1379 1379 if ( empty( $fields ) ) { … … 1619 1619 } 1620 1620 1621 $allow_batch = isset( $options['allow_batch'] ) ? $options['allow_batch'] :false;1621 $allow_batch = $options['allow_batch'] ?? false; 1622 1622 1623 1623 if ( isset( $options['schema'] ) && 'help' === $context ) { … … 1641 1641 ); 1642 1642 1643 $callback_batch = isset( $callback['allow_batch'] ) ? $callback['allow_batch'] :$allow_batch;1643 $callback_batch = $callback['allow_batch'] ?? $allow_batch; 1644 1644 1645 1645 if ( $callback_batch ) { … … 1723 1723 } 1724 1724 1725 $single_request = new WP_REST_Request( isset( $args['method'] ) ? $args['method'] :'POST', $parsed_url['path'] );1725 $single_request = new WP_REST_Request( $args['method'] ?? 'POST', $parsed_url['path'] ); 1726 1726 1727 1727 if ( ! empty( $parsed_url['query'] ) ) { … … 1768 1768 } else { 1769 1769 $route_options = $this->get_route_options( $route ); 1770 $allow_batch = isset( $route_options['allow_batch'] ) ? $route_options['allow_batch'] :false;1770 $allow_batch = $route_options['allow_batch'] ?? false; 1771 1771 } 1772 1772
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)