• 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='https://enwil.com/' rel='designer'>Manish Suwal</a>' ); ?>

    It’s this code that’s hard-coded:

    <a href='https://enwil.com/' rel='designer'>

    How do you escape that URL?

  • The topic ‘How to esc_url()’ is closed to new replies.