WordPress.org

Ready to get started?Download WordPress

Forums

How to esc_url() (1 post)

  1. Manish Suwal 'Enwil'
    Member
    Posted 1 year 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?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Manish Suwal 'Enwil'
  • This topic is not resolved
  • WordPress version: 3.6