Changeset 57126
- Timestamp:
- 11/18/2023 08:44:32 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r57120 r57126 481 481 * OR if the HTTP_X_HTTP_METHOD_OVERRIDE is used but resulted a 4xx response code. 482 482 */ 483 if ( $send_no_cache_headers || ( true === $method_overridden && str pos( $code, '4' ) === 0) ) {483 if ( $send_no_cache_headers || ( true === $method_overridden && str_starts_with( $code, '4' ) ) ) { 484 484 foreach ( wp_get_nocache_headers() as $header => $header_value ) { 485 485 if ( empty( $header_value ) ) {
Note: See TracChangeset
for help on using the changeset viewer.