Make WordPress Core

Changeset 60104


Ignore:
Timestamp:
03/28/2025 09:02:20 PM (17 months ago)
Author:
audrasjb
Message:

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

Props tobifjellner, sabernhardt, abcd95.
Fixes #63193.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r59886 r60104  
    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                );
  • trunk/tests/phpunit/tests/rest-api.php

    r59886 r60104  
    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.