From ef1a884b6ca70cebe5b512bc49897b322f14dab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A4nk=20Klein?= Date: Tue, 5 May 2015 11:59:02 +0200 Subject: [PATCH] Escape translation in title shim. See #737. --- inc/extras.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/extras.php b/inc/extras.php index e043cb6..4730724 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -49,7 +49,7 @@ if ( version_compare( $GLOBALS['wp_version'], '4.1', '<' ) ) : // Add a page number if necessary: if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { - $title .= " $sep " . sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) ); + $title .= " $sep " . sprintf( esc_html__( 'Page %s', '_s' ), max( $paged, $page ) ); } return $title;