| @@ -2408,12 +2408,13 @@ | ||
| 2408 | 2408 | if ($usage > $limit - $headroom) { |
| 2409 | 2409 | throw new \Error( |
| 2410 | 2410 | sprintf( |
| 2411 | 2411 | /* translators: 1: memory in use, 2: PHP memory limit. */ |
| 2412 | - __('The sitemap rebuild was stopped at %1$s of the %2$s PHP memory limit, before PHP would have run out of memory. It will be retried by a process with more memory (WP-CLI or a system cron). To let it finish in the admin, raise the PHP memory_limit.', 'thinkrank'), | |
| 2413 | - size_format($usage), | |
| 2414 | - size_format($limit) | |
| 2412 | + esc_html__('The sitemap rebuild was stopped at %1$s of the %2$s PHP memory limit, before PHP would have run out of memory. It will be retried by a process with more memory (WP-CLI or a system cron). To let it finish in the admin, raise the PHP memory_limit.', 'thinkrank'), | |
| 2413 | + esc_html((string) size_format($usage)), | |
| 2414 | + esc_html((string) size_format($limit)) | |
| 2415 | 2415 | ), |
| 2416 | + // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped -- an integer class constant, not output. | |
| 2416 | 2417 | self::MEMORY_ABORT_CODE |
| 2417 | 2418 | ); |
| 2418 | 2419 | } |
| 2419 | 2420 | } |