WordPress.org

Make WordPress Core

Changeset 47153


Ignore:
Timestamp:
02/01/2020 08:30:20 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Text Changes: Add missing periods to some error messages, for consistency.

Props Presskopp.
Fixes #42735.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-community-events.php

    r47124 r47153  
    115115                'api-error',
    116116                /* translators: %d: Numeric HTTP status code, e.g. 400, 403, 500, 504, etc. */
    117                 sprintf( __( 'Invalid API response code (%d)' ), $response_code )
     117                sprintf( __( 'Invalid API response code (%d).' ), $response_code )
    118118            );
    119119        } elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) {
  • trunk/src/wp-admin/includes/media.php

    r47122 r47153  
    982982
    983983        if ( ! $matches ) {
    984             return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL' ) );
     984            return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL.' ) );
    985985        }
    986986
  • trunk/src/wp-includes/class-wp-metadata-lazyloader.php

    r46586 r47153  
    7575    public function queue_objects( $object_type, $object_ids ) {
    7676        if ( ! isset( $this->settings[ $object_type ] ) ) {
    77             return new WP_Error( 'invalid_object_type', __( 'Invalid object type' ) );
     77            return new WP_Error( 'invalid_object_type', __( 'Invalid object type.' ) );
    7878        }
    7979
     
    115115    public function reset_queue( $object_type ) {
    116116        if ( ! isset( $this->settings[ $object_type ] ) ) {
    117             return new WP_Error( 'invalid_object_type', __( 'Invalid object type' ) );
     117            return new WP_Error( 'invalid_object_type', __( 'Invalid object type.' ) );
    118118        }
    119119
Note: See TracChangeset for help on using the changeset viewer.