Changeset 57623 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 02/13/2024 01:46:45 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r57312 r57623 744 744 } 745 745 746 if ( empty( $request['per_page'] ) ) { 747 $matched = $this->match_request_to_handler( $request ); 748 if ( ! is_wp_error( $matched ) && isset( $matched[1]['args']['per_page']['maximum'] ) ) { 749 $request['per_page'] = (int) $matched[1]['args']['per_page']['maximum']; 750 } 751 } 752 746 753 // Embedded resources get passed context=embed. 747 754 if ( empty( $request['context'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.