Skip to content

Commit 5de47f7

Browse files
author
costdev
committed
WP_List_Table: Improve escaping.
1 parent 6ee26d3 commit 5de47f7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/wp-admin/includes/class-wp-list-table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ protected function get_views_links( $link_data = array() ) {
15411541
/* translators: %1$s: The argument name. %2$s: The view name. */
15421542
__( 'The <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
15431543
'url',
1544-
$view
1544+
esc_html( $view )
15451545
),
15461546
'6.1.0'
15471547
);
@@ -1556,7 +1556,7 @@ protected function get_views_links( $link_data = array() ) {
15561556
/* translators: %1$s: The argument name. %2$s: The view name. */
15571557
__( 'The <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
15581558
'label',
1559-
$view
1559+
esc_html( $view )
15601560
),
15611561
'6.1.0'
15621562
);
@@ -1566,7 +1566,7 @@ protected function get_views_links( $link_data = array() ) {
15661566

15671567
$views_links[ $view ] = sprintf(
15681568
'<a href="%s"%s>%s</a>',
1569-
$link['url'],
1569+
esc_url( $link['url'] ),
15701570
isset( $link['current'] ) && true === $link['current'] ? ' class="current" aria-current="page"' : '',
15711571
$link['label']
15721572
);

0 commit comments

Comments
 (0)