#2785 closed defect (bug) (fixed)
wp-includes/classes.php loop not incrementing $tok_index
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | trivial | Version: | 2.0 |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Pacthes for 2.0 and trunk attached which implement the fix mentioned in the ticket.