Changeset 59886 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 02/27/2025 11:17:38 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r59457 r59886 431 431 } 432 432 433 // Return an error message if query_var is not a string. 434 if ( ! is_string( $GLOBALS['wp']->query_vars['rest_route'] ) ) { 435 $rest_type_error = new WP_Error( 436 'rest_path_invalid_type', 437 __( 'The rest route parameter must be a string.' ), 438 array( 'status' => 400 ) 439 ); 440 wp_die( $rest_type_error ); 441 } 442 433 443 /** 434 444 * Whether this is a REST Request.
Note: See TracChangeset
for help on using the changeset viewer.