Forums
Home / Themes and Templates / How to esc_url()
(@manishsuwal)
10 years, 8 months ago
I’m developing a theme.
When I did Theme Check before giving my theme to the review team it said:
INFO: Possible hard-coded links were found in the file footer.php. Line 53:
[ Moderator note: please wrap code in backticks or use the code button. ]
<?php printf( __( 'Theme: %1$s by %2$s.', 'willingness' ), 'willingness', '<a href='http://enwil.com/' rel='designer'>Manish Suwal</a>' ); ?>
It’s this code that’s hard-coded:
<a href='http://enwil.com/' rel='designer'>
How do you escape that URL?