From db8a038541e3a7327d806a00bb90cc8c912bcd16 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 1 Feb 2020 20:30:20 +0000 Subject: [PATCH] Text Changes: Add missing periods to some error messages, for consistency. Props Presskopp. Fixes #42735. git-svn-id: https://develop.svn.wordpress.org/trunk@47153 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-community-events.php | 2 +- src/wp-admin/includes/media.php | 2 +- src/wp-includes/class-wp-metadata-lazyloader.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/class-wp-community-events.php b/src/wp-admin/includes/class-wp-community-events.php index 1d76b8e30d..43a9218e8d 100644 --- a/src/wp-admin/includes/class-wp-community-events.php +++ b/src/wp-admin/includes/class-wp-community-events.php @@ -114,7 +114,7 @@ class WP_Community_Events { $response_error = new WP_Error( 'api-error', /* translators: %d: Numeric HTTP status code, e.g. 400, 403, 500, 504, etc. */ - sprintf( __( 'Invalid API response code (%d)' ), $response_code ) + sprintf( __( 'Invalid API response code (%d).' ), $response_code ) ); } elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) { $response_error = new WP_Error( diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index eaa3a1ca50..72dbf2aeda 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -981,7 +981,7 @@ function media_sideload_image( $file, $post_id = 0, $desc = null, $return = 'htm preg_match( '/[^\?]+\.(jpe?g|jpe|gif|png)\b/i', $file, $matches ); if ( ! $matches ) { - return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL' ) ); + return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL.' ) ); } $file_array = array(); diff --git a/src/wp-includes/class-wp-metadata-lazyloader.php b/src/wp-includes/class-wp-metadata-lazyloader.php index 80b8bdd5bd..0a1a5123ed 100644 --- a/src/wp-includes/class-wp-metadata-lazyloader.php +++ b/src/wp-includes/class-wp-metadata-lazyloader.php @@ -74,7 +74,7 @@ class WP_Metadata_Lazyloader { */ public function queue_objects( $object_type, $object_ids ) { if ( ! isset( $this->settings[ $object_type ] ) ) { - return new WP_Error( 'invalid_object_type', __( 'Invalid object type' ) ); + return new WP_Error( 'invalid_object_type', __( 'Invalid object type.' ) ); } $type_settings = $this->settings[ $object_type ]; @@ -114,7 +114,7 @@ class WP_Metadata_Lazyloader { */ public function reset_queue( $object_type ) { if ( ! isset( $this->settings[ $object_type ] ) ) { - return new WP_Error( 'invalid_object_type', __( 'Invalid object type' ) ); + return new WP_Error( 'invalid_object_type', __( 'Invalid object type.' ) ); } $type_settings = $this->settings[ $object_type ];