Make WordPress Core

Changeset 60105


Ignore:
Timestamp:
03/28/2025 10:42:26 PM (7 weeks ago)
Author:
audrasjb
Message:

REST API: Properly capitalize "REST" in translation strings.

Reviewed by jorbin.
Merges [60104] to the 6.8 branch.
Props tobifjellner, sabernhardt, abcd95.
Fixes #63193.

Location:
branches/6.8
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/6.8

  • branches/6.8/src/wp-includes/rest-api.php

    r59886 r60105  
    435435        $rest_type_error = new WP_Error(
    436436            'rest_path_invalid_type',
    437             __( 'The rest route parameter must be a string.' ),
     437            __( 'The REST route parameter must be a string.' ),
    438438            array( 'status' => 400 )
    439439        );
  • branches/6.8/tests/phpunit/tests/rest-api.php

    r59886 r60105  
    25782578        } catch ( WPDieException $e ) {
    25792579            $this->assertStringContainsString(
    2580                 'The rest route parameter must be a string.',
     2580                'The REST route parameter must be a string.',
    25812581                $e->getMessage()
    25822582            );
Note: See TracChangeset for help on using the changeset viewer.