[wp-trac] [WordPress Trac] #58127: Improper code
WordPress Trac
noreply at wordpress.org
Thu Apr 13 14:48:48 UTC 2023
#58127: Improper code
--------------------------+-----------------------------
Reporter: himshekhar07 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
In the Twenty Eleven theme folder, the file named search.php has improper
escaping on line number 21 as per the VIP standard.
Issue screenshot:
[https://share.cleanshot.com/3rPjnj33GHPcFfyL0rKh]
The present line of code
{{{
printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' .
get_search_query() . '</span>' );
}}}
Improve line of code:
{{{
printf( esc_html__( 'Search Results for: %s', 'twentyeleven' ), '<span>' .
esc_html( get_search_query() ) . '</span>' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58127>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list