Ticket #42735: 42735.diff
| File 42735.diff, 2.7 KB (added by , 8 years ago) |
|---|
-
src/wp-admin/includes/class-wp-community-events.php
114 114 $response_error = new WP_Error( 115 115 'api-error', 116 116 /* 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 ) 118 118 ); 119 119 } elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) { 120 120 $response_error = new WP_Error( -
src/wp-admin/includes/media.php
872 872 // Set variables for storage, fix file filename for query strings. 873 873 preg_match( '/[^\?]+\.(jpe?g|jpe|gif|png)\b/i', $file, $matches ); 874 874 if ( ! $matches ) { 875 return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL ' ) );875 return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL.' ) ); 876 876 } 877 877 878 878 $file_array = array(); -
src/wp-includes/class-wp-metadata-lazyloader.php
74 74 */ 75 75 public function queue_objects( $object_type, $object_ids ) { 76 76 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.' ) ); 78 78 } 79 79 80 80 $type_settings = $this->settings[ $object_type ]; … … 114 114 */ 115 115 public function reset_queue( $object_type ) { 116 116 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.' ) ); 118 118 } 119 119 120 120 $type_settings = $this->settings[ $object_type ]; -
src/wp-includes/widgets/class-wp-widget-rss.php
69 69 } 70 70 71 71 if ( empty( $title ) ) { 72 $title = ! empty( $desc ) ? $desc : __( 'Unknown Feed ' );72 $title = ! empty( $desc ) ? $desc : __( 'Unknown Feed.' ); 73 73 } 74 74 75 75 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */