WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2016 03:52:18 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Merge some duplicate strings with the same meaning in error messages, adjust some other strings for consistency and accuracy.

Props ramiy, SergeyBiryukov.
Fixes #38808.

File:
1 edited

Legend:

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

    r39104 r39278  
    286286            $jsonp_callback = $_GET['_jsonp'];
    287287            if ( ! wp_check_jsonp_callback( $jsonp_callback ) ) {
    288                 echo $this->json_error( 'rest_callback_invalid', __( 'The JSONP callback function is invalid.' ), 400 );
     288                echo $this->json_error( 'rest_callback_invalid', __( 'Invalid JSONP callback function.' ), 400 );
    289289                return false;
    290290            }
Note: See TracChangeset for help on using the changeset viewer.