Text Changes: Add missing periods to some error messages, for consistency.
Props Presskopp. Fixes #42735. Built from https://develop.svn.wordpress.org/trunk@47153 git-svn-id: http://core.svn.wordpress.org/trunk@46953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
21548ad0de
commit
12a6907123
|
@ -114,7 +114,7 @@ class WP_Community_Events {
|
||||||
$response_error = new WP_Error(
|
$response_error = new WP_Error(
|
||||||
'api-error',
|
'api-error',
|
||||||
/* translators: %d: Numeric HTTP status code, e.g. 400, 403, 500, 504, etc. */
|
/* 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'] ) ) {
|
} elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) {
|
||||||
$response_error = new WP_Error(
|
$response_error = new WP_Error(
|
||||||
|
|
|
@ -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 );
|
preg_match( '/[^\?]+\.(jpe?g|jpe|gif|png)\b/i', $file, $matches );
|
||||||
|
|
||||||
if ( ! $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();
|
$file_array = array();
|
||||||
|
|
|
@ -74,7 +74,7 @@ class WP_Metadata_Lazyloader {
|
||||||
*/
|
*/
|
||||||
public function queue_objects( $object_type, $object_ids ) {
|
public function queue_objects( $object_type, $object_ids ) {
|
||||||
if ( ! isset( $this->settings[ $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 ];
|
$type_settings = $this->settings[ $object_type ];
|
||||||
|
@ -114,7 +114,7 @@ class WP_Metadata_Lazyloader {
|
||||||
*/
|
*/
|
||||||
public function reset_queue( $object_type ) {
|
public function reset_queue( $object_type ) {
|
||||||
if ( ! isset( $this->settings[ $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 ];
|
$type_settings = $this->settings[ $object_type ];
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-47152';
|
$wp_version = '5.4-alpha-47153';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue