Does My Site Have a Virus? (3 posts)

  1. krh
    Posted 3 years ago #

    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:

    There is no virus
    View line 13
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>

    Can anyone help? Thank you!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

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

  3. cmegown
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.