Pessoal após a atualização do wordpress para a versão 2.6.5 apareceu o seguinte problema com o plugin Downloads Manager:
/public_html/blog/wp-content/plugins/downloads-manager/functions.php on line 63
No arquivo functions.php a linha 63 é a:
while (($size/1024)>1) {
function FileSizeOf($link) {
if(strpos($link, get_option('siteurl')) === false) {
$link = str_replace(' ', '%20', $link);
if(function_exists('get_headers')) {
$headers = @get_headers($link, 1);
if($headers['Content-Length'] == '')
return;
$size = $headers['Content-Length'];
}
else {
$file = @file_get_contents($link);
if($file == false)
return;
$size = strlen($file);
}
}
else {
$file = ABSPATH.'wp-content/plugins/downloads-manager/upload/'.basename($link);
$size = @filesize($file);
}
$i = 0;
$type = array("B", "KB", "MB", "GB");
while (($size/1024)>1) {
$size=$size/1024;
$i++;
}
return substr($size,0,strpos($size,'.')+3).$type[$i];
}
Alguém teria uma solução?
Obrigado.