File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
plugins/image-prioritizer Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,15 @@ function image_prioritizer_filter_store_url_metric_data( $data ): array {
290
290
*
291
291
* @noinspection PhpUnhandledExceptionInspection
292
292
*/
293
- wp_trigger_error ( __FUNCTION__ , $ image_validity ->get_error_message () . ' Background image URL: ' . $ data ['lcpElementExternalBackgroundImage ' ]['url ' ] );
293
+ wp_trigger_error (
294
+ __FUNCTION__ ,
295
+ sprintf (
296
+ /* translators: 1: error message. 2: image url */
297
+ __ ( 'Error: %1$s. Background image URL: %2$s. ' , 'image-prioritizer ' ),
298
+ rtrim ( $ image_validity ->get_error_message (), '. ' ),
299
+ $ data ['lcpElementExternalBackgroundImage ' ]['url ' ]
300
+ )
301
+ );
294
302
unset( $ data ['lcpElementExternalBackgroundImage ' ] );
295
303
}
296
304
}
You can’t perform that action at this time.
0 commit comments