Title: Suspicious Code
Last modified: August 19, 2016

---

# Suspicious Code

 *  [wpwend42](https://wordpress.org/support/users/wpwend42/)
 * (@wpwend42)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/suspicious-code/)
 * The antivirus plugin for WP says that my sidebar has suspicious code. Specifically,
   it is citing line #3 (the TEMPLATE PATH line)…can anyone see what I need to remove
   from that line? Thanks!
 *     ```
       <div id="sidebar">
       	<div class="searchform">
       		<?php include(TEMPLATEPATH . '/searchform.php'); ?>
       	</div><!-- end .searchform -->
   
       	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
   
       <ul>
       <li>
       		<h2><?php _e('Archives'); ?></h2>
   
       <ul><?php wp_get_archives('type=monthly'); ?></ul>
       </li>
       <li>
       <ul><?php wp_list_bookmarks(); ?></ul>
       </li>
       <li><h2><?php _e('Meta'); ?></h2>
       <ul>
       <li><?php wp_loginout(); ?></li>
       <li><a>"><?php _e(' RSS Entries'); ?></a></li>
       <li><a>"><?php _e(' Comments RSS'); ?></a></li>
       </ul>
       </li>
       </ul>
       	<?php endif; ?>
       </div><!-- end #sidebar -->
       ```
   

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

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/suspicious-code/#post-1474234)
 * Don’t remove anything yet. There is nothing inherently wrong with this code; `
   <?php include(TEMPLATEPATH . '/searchform.php'); ?>`
 * Search the forum for similar events…
 * [http://wordpress.org/search/antivirus+plugin+include?forums=1](http://wordpress.org/search/antivirus+plugin+include?forums=1)
 * …and make your decision based on what you might find in those threads
 *  [Shane G.](https://wordpress.org/support/users/shane-g-1/)
 * (@shane-g-1)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/suspicious-code/#post-1474433)
 * Hi,
 * Also refer this article:
 * [http://codex.wordpress.org/FAQ_My_site_was_hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked)
 * Thanks,
 * Shane G.

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

The topic ‘Suspicious Code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Shane G.](https://wordpress.org/support/users/shane-g-1/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/suspicious-code/#post-1474433)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
