[wp-trac] Re: [WordPress Trac] #7749: LOOP and return Request: Enable echo=0 and style=none for wp_get_archives

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 12 12:30:08 GMT 2008


#7749: LOOP and return Request: Enable echo=0 and style=none for wp_get_archives
------------------------------------------------------------------------+---
 Reporter:  nublooo                                                     |        Owner:  ryan    
     Type:  enhancement                                                 |       Status:  reopened
 Priority:  normal                                                      |    Milestone:  2.7     
Component:  General                                                     |      Version:  2.6.1   
 Severity:  normal                                                      |   Resolution:          
 Keywords:  archives, wp_get_archives, echo archives has-patch, commit  |  
------------------------------------------------------------------------+---
Changes (by michelwp):

  * status:  closed => reopened
  * resolution:  fixed =>
  * summary:  Request: Enable echo=0 and style=none for wp_get_archives =>
              LOOP and return Request: Enable echo=0 and
              style=none for wp_get_archives

Comment:

 JUST A MISTAKE : because return are in LOOP, the behaviour is not correct
 and not like than echo...

 The better code must be for each loop and each end of loop in if/endif
 series :


 {{{
 if ($echo)
                                                 echo
 get_archives_link($url, $text, $format, $before, $after);
                                         else
                                                 $output .=
 get_archives_link($url, $text, $format, $before, $after);
                                 }
                         }
                         if (!$echo) return $output;
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7749#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list