• krh

    (@krh)


    Hi there,

    Something is fishy with my site and I’m wondering if I have a virus. I noticed something was weird when I tried to paste my URL into facebook… the preview changed the URL and did not show the image on the page.

    So I installed the plugin AntiVirus and the scan returned this:

    /themes/concise/404.php
    There is no virus
    View line 13
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>

    Can anyone help? Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    The line you quoted – whilst not best coding practice – is perfectly innocent.

    cmegown

    (@cmegown)

    Esmi is correct. That line isn’t exactly “proper”, but it’s works ?? You can technically throw out the TEMPLATEPATH, and just leave in the file and it’s file path:

    <?php include('searchform.php'); ?>

    but since this specific file is for the search form, you can use the WordPress function:

    <?php get_search_form(); ?>

    which will automatically look for the searchform.php file and include the markup.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does My Site Have a Virus?’ is closed to new replies.