[wp-trac] [WordPress Trac] #2785: wp-includes/classes.php loop not incrementing $tok_index

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 4 12:12:32 GMT 2006


#2785: wp-includes/classes.php loop not incrementing $tok_index
-----------------------+----------------------------------------------------
       Id:  2785       |      Status:  new                     
Component:  General    |    Modified:  Sun Jun  4 12:12:31 2006
 Severity:  trivial    |   Milestone:                          
 Priority:  normal     |     Version:  2.0                     
    Owner:  anonymous  |    Reporter:  debuntu                 
-----------------------+----------------------------------------------------
 It seems that something is missing in wp-includes/classes.php . At line
 1022:
  $tok_index = 1;
                 foreach ($tokens[0] as $token) {
                     if ( ($token == '%post_id%') && ($tok_index <= 3) ) {
                             $front = $front . 'date/';
                             break;
                     }
                 }
 $tok_index is never increased?!? This force writing "date/" in front of
 archives pages.
 there should be $tok_index++ after the if(){} condition.
 Check this thread:
 http://wordpress.org/support/topic/67914

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2785>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list