Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/08/2005, 06:08
lotusxxl
 
Fecha de Ingreso: junio-2002
Mensajes: 243
Antigüedad: 21 años, 10 meses
Puntos: 1
Según la documentación oficial de php...

Código PHP:
<?php
function foo(&$var)
{
   
$var++;
}

$a=5;
foo($a);
// $a is 6 here
?>
Por lo tanto el modo correcto seria...

Código PHP:
function wp_get_archives($args '', &$c=0) { 
    
parse_str($args$r); 
    if (!isset(
$r['type'])) $r['type'] = ''
    if (!isset(
$r['limit'])) $r['limit'] = ''
    if (!isset(
$r['format'])) $r['format'] = 'html'
    if (!isset(
$r['before'])) $r['before'] = ''
    if (!isset(
$r['after'])) $r['after'] = ''
    if (!isset(
$r['show_post_count'])) $r['show_post_count'] = false
    
get_archives($r['type'], $r['limit'], $r['format'], $r['before'], $r['after'], $r['show_post_count'], $c); 

Salu2.